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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1015
RA = 226.103, Dec = 10.4978
tmin = 502416001, tmax = 502675201
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='3910', job_status='RUN', time_executed='2021-09-10 21:39:54.753373', time_epoch_executed='1631335194.75' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3910/ft1_4FGL_J1504.4+1029_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3910/ft1_4FGL_J1504.4+1029_daily_bin1015.fits outfile=/scratch/kocevski/3910/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1015.fits ra=226.103 dec=10.4978 rad=12.0 tmin=502416001.0 tmax=502675201.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.55
user 3.31
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.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/3910/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/3910/ft1_filtered_4FGL_J1504.4+1029_daily_bin1015.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.73
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3910/ft1_filtered_4FGL_J1504.4+1029_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/3910/ltcube_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.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/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits
.....................!
real 16.74
user 16.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3910/ft1_filtered_4FGL_J1504.4+1029_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/3910/ltcube_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.fits outfile=/scratch/kocevski/3910/expmap_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.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/3910/ltcube_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.fits
.....................!
real 191.16
user 185.95
sys 4.69

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

Setting source of interest to:
4FGL J1504.4+1029 @ 226.103 10.4978

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/3910/ft1_filtered_4FGL_J1504.4+1029_daily_bin1015.fits scfile=/scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits outfile=/scratch/kocevski/3910/cmap_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.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.103 yref=10.4978 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3910/ft1_filtered_4FGL_J1504.4+1029_daily_bin1015.fits scfile=/scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits outfile=/scratch/kocevski/3910/cmap_HighResolution_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.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.103 yref=10.4978 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/3910/ft1_filtered_4FGL_J1504.4+1029_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/3910/Model_4FGL_J1504.4+1029_daily_bin1015.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/3910/ft1_filtered_4FGL_J1504.4+1029_daily_bin1015.fits.....................!
real 58.30
user 56.81
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/3910/ft1_filtered_4FGL_J1504.4+1029_daily_bin1015.fits', '/scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits', expMap='/scratch/kocevski/3910/expmap_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.fits', expCube='/scratch/kocevski/3910/ltcube_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/3910/Model_4FGL_J1504.4+1029_daily_bin1015.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1504.4+1029'

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.267e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/3910/ft1_filtered_4FGL_J1504.4+1029_daily_bin1015.fits
Spacecraft file(s): /scratch/kocevski/3910/ft2_4FGL_J1504.4+1029_daily_bin1015.fits
Exposure map: /scratch/kocevski/3910/expmap_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.fits
Exposure cube: /scratch/kocevski/3910/ltcube_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/3910/Model_4FGL_J1504.4+1029_daily_bin1015.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) = 7660.32643071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1750       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.804       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2735       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17703E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6415       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2243       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    30.303       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2646       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.518       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.280       1.0000         .10000E-03   10000.    
    25 'norm      '    3.6868       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3178       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94841       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7660.312     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3523 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.064        .18589E-04** at limit **
   2  norm          .10000E-03    25.937       -.38313E-05** at limit **
   3  Prefactor     9.3842        7.3408       -.16507E-06   -.41662E-05
   4  Prefactor     .10000E-03    2.7967       -.29722E-07** at limit **
   5  norm          4.1749        3.1423       -.66742E-07    .80173E-05
   6  Prefactor     44.801        48.101        .93757E-06   -.76462E-05
   7  Prefactor     .10000E-03    28.597        .19578E-04** at limit **
   8  norm          .10000E-03    7.9640       -.26045E-07** at limit **
   9  Prefactor     5.2800        34.148        .29970E-05    .45527E-04
  10  Prefactor     .10569E-03    18.033       -.12333E-05** at limit **
  11  Prefactor     .10000E-03    4.8081        .65133E-08** at limit **
  12  Prefactor     .10000E-03    31.859       -.20313E-04** at limit **
  13  Prefactor     .10000E-03    18.366       -.18939E-05** at limit **
  14  norm          2.6415        .35062        .13050E-07    .18000E-02
  15  norm          1.2256        2.8039       -.94316E-06   -.13737E-02
  16  norm          .10000E-03    2.3350        .12363E-07** at limit **
  17  norm          30.304        30.160       -.24897E-06    .42573E-05
  18  norm          4.2640        4.6312       -.41284E-07   -.29372E-03
  19  Prefactor     .10000E-03    154.92        .75647E-05** at limit **
  20  Prefactor     16.518        32.000        .27457E-06    .31264E-05
  21  Prefactor     .10000E-03    20.487       -.18441E-04** at limit **
  22  Prefactor     .10000E-03    2.9955        .66415E-08** at limit **
  23  Prefactor     .10000E-03    42.136        .93169E-05** at limit **
  24  Prefactor     21.287        36.632       -.59891E-05    .44769E-06
  25  norm          3.6870        2.4794        .79439E-08    .19915E-03
  26  Prefactor     .10000E-03    68.905       -.54517E-05** at limit **
  27  Normalizat    1.3179        .23055        .25982E-06    .16390E-03
  28  Prefactor     .94830        .13316        .62911E-06    .15036E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.38423
  Prefactor  = 0.0001
  norm       = 4.17486
  Prefactor  = 44.8015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.28005
  Prefactor  = 0.000105694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.64151
  norm       = 1.22558
  norm       = 0.0001
  norm       = 30.3042
  norm       = 4.26402
  Prefactor  = 0.0001
  Prefactor  = 16.5181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2865
  norm       = 3.68696
  Prefactor  = 0.0001
  Normalizat = 1.31789
  Prefactor  = 0.948299
 **********
 **   18 **HESSE 
 **********

 FCN=   7660.312     FROM HESSE     STATUS=OK           523 CALLS     4046 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    26.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3842        7.3482        .13082E-03   -1.5095    
   4  Prefactor     .10000E-03    2.8129        .14288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1749        3.1403        .13035E-03   -1.5299    
   6  Prefactor     44.801        48.106        .59897E-04   -1.4368    
   7  Prefactor     .10000E-03    28.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.9810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2800        34.363        .17503E-03   -1.5248    
  10  Prefactor     .10569E-03    20.859        .10676       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6415        .35161        .17897E-04   -1.5383    
  15  norm          1.2256        2.7993        .20384E-03   -1.5487    
  16  norm          .10000E-03    2.3367        .13061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          30.304        30.161        .72784E-04   -1.4606    
  18  norm          4.2640        4.5985        .18347E-03   -1.5295    
  19  Prefactor     .10000E-03    157.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.518        32.008        .98545E-04   -1.4895    
  21  Prefactor     .10000E-03    20.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0257        .14791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    42.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.287        36.762        .86827E-04   -1.4785    
  25  norm          3.6870        2.4837        .11011E-03   -1.5324    
  26  Prefactor     .10000E-03    68.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3179        .27761        .32432E-03   -.83034    
  28  Prefactor     .94830        .16055        .21839E-03   -.94473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38601e-09
Minuit parameter uncertainties:
  1  2.63601e-05
  2  1.25589e-05
  3  7.34892
  4  2.41931e-06
  5  3.14047
  6  48.1478
  7  6.06381e-05
  8  1.18301e-05
  9  26.962
  10  0.0218032
  11  1.94672e-06
  12  3.14513e-05
  13  2.10287e-06
  14  0.351607
  15  2.79958
  16  3.18295e-07
  17  30.1763
  18  4.59888
  19  0.000359864
  20  32.0413
  21  2.57182e-07
  22  1.99898e-06
  23  4.7767e-05
  24  36.8015
  25  2.48377
  26  8.17627e-06
  27  0.27792
  28  0.160634
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.642e+00  3.516e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.483e-01  1.606e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.318e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 213.05
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 6.43e-07 +/- 8.56e-08
Energy Flux (Fixed Index): 2.60e-04 +/- 3.47e-05

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) = 7659.84509848
delta logL = 0.466783397472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7659.84489386
delta logL = 0.466988016256

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7659.845     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6639        .36426        .41328E-02   -.63002E-04
   2  alpha         1.9942        .13469        .10263       -.24123E-05
   3  Normalizat    1.3680        .22561        .72260E-01    .12369E-04
   4  Prefactor     .93007        .13001        .45386E-01    .81893E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66393
  alpha      = 1.99417
  Normalizat = 1.36803
  Prefactor  = 0.930071
 **********
 **   18 **HESSE 
 **********

 FCN=   7659.845     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .49E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6639        .35686        .18261E-04   -1.5382    
   2  alpha         1.9942        .13327        .44997E-03   -.20374    
   3  Normalizat    1.3680        .27118        .31974E-03   -.81558    
   4  Prefactor     .93007        .15580        .22034E-03   -.95098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9308e-14
Minuit parameter uncertainties:
  1  0.356862
  2  0.133339
  3  0.271467
  4  0.155875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3910': 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) = 7659.8448936
delta logL = 0.466988280658

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.664e+00  3.569e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.994e+00  1.333e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.301e-01  1.559e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.368e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 213.03
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.99 +/- 0.13
Photon Flux (Free Index): 5.93e-07 +/- 9.48e-08
Energy Flux (Free Index): 2.88e-04 +/- 5.03e-05

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/3910/cmap_HighResolution_502416001_502675201_4FGL_J1504.4+1029_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.43e-07', energy_flux2='2.88e-04', photon_flux_error='8.56e-08', dlogl='4.67e-01', energy_flux='2.60e-04', photon_flux2='5.93e-07', job_status='DONE', time_completed='2021-09-10 21:51:39.120233', photon_index_error2='0.13', photon_index2='1.99', ts='213.05', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='5.03e-05', EG='1.32', time_epoch_completed='1631335899.12', return_code='0', job_id='3910', GAL2='0.93', EG2='1.37', return_code2='0', energy_flux_error='3.47e-05', photon_flux_error2='9.48e-08', ts2='213.03', photon_index='2.12' WHERE bin_id='1015' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 3910: <4FGL_J1504.4+1029_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1015> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:36:30 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:36:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 21:36:32 2021
Terminated at Fri Sep 10 21:51:39 2021
Results reported at Fri Sep 10 21:51:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1015 226.103 10.4978 502416001 502675201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1504.4+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

