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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1508
RA = 226.103, Dec = 10.4978
tmin = 630201601, tmax = 630460801
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='9180', job_status='RUN', time_executed='2021-09-10 21:53:09.780936', time_epoch_executed='1631335989.78' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9180

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9180/ft1_4FGL_J1504.4+1029_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9180/ft2_4FGL_J1504.4+1029_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9180/ft1_4FGL_J1504.4+1029_daily_bin1508.fits outfile=/scratch/kocevski/9180/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1508.fits ra=226.103 dec=10.4978 rad=12.0 tmin=630201601.0 tmax=630460801.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.69
user 3.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9180/ft1_filtered_4FGL_J1504.4+1029_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/9180/ft2_4FGL_J1504.4+1029_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/9180/ltcube_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.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/9180/ft2_4FGL_J1504.4+1029_daily_bin1508.fits
.....................!
real 12.93
user 12.49
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9180/ft1_filtered_4FGL_J1504.4+1029_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/9180/ft2_4FGL_J1504.4+1029_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/9180/ltcube_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.fits outfile=/scratch/kocevski/9180/expmap_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.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/9180/ltcube_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.fits
.....................!
real 190.60
user 185.45
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/9180/ft1_filtered_4FGL_J1504.4+1029_daily_bin1508.fits scfile=/scratch/kocevski/9180/ft2_4FGL_J1504.4+1029_daily_bin1508.fits outfile=/scratch/kocevski/9180/cmap_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.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/9180/ft1_filtered_4FGL_J1504.4+1029_daily_bin1508.fits scfile=/scratch/kocevski/9180/ft2_4FGL_J1504.4+1029_daily_bin1508.fits outfile=/scratch/kocevski/9180/cmap_HighResolution_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/9180/ft1_filtered_4FGL_J1504.4+1029_daily_bin1508.fits', '/scratch/kocevski/9180/ft2_4FGL_J1504.4+1029_daily_bin1508.fits', expMap='/scratch/kocevski/9180/expmap_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.fits', expCube='/scratch/kocevski/9180/ltcube_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/9180/Model_4FGL_J1504.4+1029_daily_bin1508.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/9180/ft1_filtered_4FGL_J1504.4+1029_daily_bin1508.fits
Spacecraft file(s): /scratch/kocevski/9180/ft2_4FGL_J1504.4+1029_daily_bin1508.fits
Exposure map: /scratch/kocevski/9180/expmap_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.fits
Exposure cube: /scratch/kocevski/9180/ltcube_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/9180/Model_4FGL_J1504.4+1029_daily_bin1508.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) = 10468.353411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    122.70       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3312       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .99664E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21984E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.0349       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5235       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3482       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.421       1.0000         .10000E-03   10000.    
    14 'norm      '    .97635       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8317       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.110       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9603       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.896       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8612       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.002       1.0000         .10000E-03   10000.    
    25 'norm      '    9.1024       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92410       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0337       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=   10468.26     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     2997 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.724        .10426E-06** at limit **
   2  norm          122.70        36.656       -.97939E-06   -.13936E-03
   3  Prefactor     4.3310        4.3110        .18417E-05   -.26587E-02
   4  Prefactor     .10000E-03    3.5949       -.14669E-05** at limit **
   5  norm          .10000E-03    .54719        .35391E-08** at limit **
   6  Prefactor     .10001E-03    76.037       -.15854E-04** at limit **
   7  Prefactor     .10001E-03    60.831        .13257E-04** at limit **
   8  norm          8.0023        17.395        .94207E-07   -.14604E-03
   9  Prefactor     3.5232        13.903        .11763E-05    .23042E-04
  10  Prefactor     5.3498        17.869       -.42189E-06   -.36881E-04
  11  Prefactor     .10000E-03    5.9169       -.40716E-07** at limit **
  12  Prefactor     .10000E-03    4.1903        .21103E-07** at limit **
  13  Prefactor     17.419        20.781       -.35763E-06   -.15131E-04
  14  norm          .97634        .18569       -.29845E-08    .62384E-04
  15  norm          1.8318        1.9158        .13949E-07   -.37489E-03
  16  norm          .10000E-03    1.3650       -.14333E-08** at limit **
  17  norm          19.110        19.084       -.52154E-07    .67971E-04
  18  norm          3.9596        3.6803        .21715E-07   -.17198E-03
  19  Prefactor     12.894        22.046       -.74812E-06   -.25290E-04
  20  Prefactor     6.8535        23.405       -.27511E-05   -.59019E-04
  21  Prefactor     .10000E-03    6.5635        .26222E-07** at limit **
  22  Prefactor     .10000E-03    1.3687       -.45173E-08** at limit **
  23  Prefactor     .10001E-03    47.834       -.11085E-04** at limit **
  24  Prefactor     32.996        24.440       -.13144E-05   -.11231E-03
  25  norm          9.1024        3.1052       -.10038E-07    .78434E-04
  26  Prefactor     .10001E-03    56.829        .11733E-04** at limit **
  27  Normalizat    .92380        .18043        .22645E-06    .14671E-03
  28  Prefactor     1.0339        .10728        .11843E-06    .21053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 122.698
  Prefactor  = 4.33102
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100009
  norm       = 8.00235
  Prefactor  = 3.52321
  Prefactor  = 5.34979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4191
  norm       = 0.976343
  norm       = 1.8318
  norm       = 0.0001
  norm       = 19.1095
  norm       = 3.95958
  Prefactor  = 12.8939
  Prefactor  = 6.85349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 32.9955
  norm       = 9.10236
  Prefactor  = 0.000100008
  Normalizat = 0.923801
  Prefactor  = 1.03387
 **********
 **   18 **HESSE 
 **********

 FCN=   10468.26     FROM HESSE     STATUS=OK           519 CALLS     3516 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          122.70        36.719        .36334E-04   -1.3488    
   3  Prefactor     4.3310        6.5453        .96778E-03   -1.5292    
   4  Prefactor     .10000E-03    11.642        .36197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .54859        .73901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    77.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    61.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0023        17.342        .14145E-03   -1.5142    
   9  Prefactor     3.5232        13.887        .21536E-03   -1.5333    
  10  Prefactor     5.3498        17.864        .17378E-03   -1.5245    
  11  Prefactor     .10000E-03    5.9682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.419        20.785        .95957E-04   -1.4873    
  14  norm          .97634        .18573        .18265E-04   -1.5510    
  15  norm          1.8318        1.8942        .13387E-03   -1.5437    
  16  norm          .10000E-03    1.3658        .11674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.110        19.089        .45811E-03   -1.4833    
  18  norm          3.9596        3.6642        .17757E-03   -1.5310    
  19  Prefactor     12.894        22.069        .11154E-03   -1.4990    
  20  Prefactor     6.8535        23.478        .15317E-03   -1.5184    
  21  Prefactor     .10000E-03    6.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.3851        .11688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    48.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.996        24.537        .69752E-04   -1.4558    
  25  norm          9.1024        3.1054        .10215E-03   -1.5104    
  26  Prefactor     .10001E-03    57.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .92380        .21505        .32906E-03   -.95629    
  28  Prefactor     1.0339        .12915        .19104E-03   -.91609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34258e-09
Minuit parameter uncertainties:
  1  1.49412e-05
  2  36.7261
  3  6.54638
  4  0.000238041
  5  1.69421e-07
  6  0.00195413
  7  0.00146956
  8  17.3533
  9  13.8999
  10  17.8817
  11  4.95458e-06
  12  7.90699e-07
  13  20.7938
  14  0.185726
  15  1.89427
  16  1.31519e-07
  17  19.0952
  18  3.66446
  19  22.0829
  20  23.5093
  21  7.12365e-07
  22  3.86227e-08
  23  0.00113124
  24  24.5449
  25  3.10548
  26  0.00134089
  27  0.215248
  28  0.129194
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.763e-01  1.857e-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:  1.034e+00  1.292e-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:  9.238e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 90.50
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.38e-07 +/- 4.52e-08
Energy Flux (Fixed Index): 9.63e-05 +/- 1.83e-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) = 10467.875623
delta logL = 0.386211263394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10467.8582376
delta logL = 0.403596606589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97841       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9563       1.0000          .0000       5.0000    
     3 'Normalizat'    .95419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0225       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=   10467.86     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97842        .19645        .42274E-02    .84215E-05
   2  alpha         1.9563        .18676        .16742       -.16410E-04
   3  Normalizat    .95412        .17363        .73333E-01    .28250E-04
   4  Prefactor     1.0226        .10548        .41899E-01    .21930E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.978423
  alpha      = 1.9563
  Normalizat = 0.954123
  Prefactor  = 1.02259
 **********
 **   18 **HESSE 
 **********

 FCN=   10467.86     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97842        .18899        .18683E-04   -1.5510    
   2  alpha         1.9563        .18443        .72073E-02   -.21923    
   3  Normalizat    .95412        .20936        .32449E-03   -.94584    
   4  Prefactor     1.0226        .12710        .19201E-03   -.91980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51848e-11
Minuit parameter uncertainties:
  1  0.188989
  2  0.184604
  3  0.209542
  4  0.127133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9180': 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) = 10467.8582373
delta logL = 0.403596909935

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.784e-01  1.890e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.956e+00  1.846e-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:  1.023e+00  1.271e-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:  9.541e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 90.95
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.96 +/- 0.18
Photon Flux (Free Index): 2.13e-07 +/- 4.93e-08
Energy Flux (Free Index): 1.09e-04 +/- 2.73e-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/9180/cmap_HighResolution_630201601_630460801_4FGL_J1504.4+1029_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.38e-07', energy_flux2='1.09e-04', photon_flux_error='4.52e-08', dlogl='4.04e-01', energy_flux='9.63e-05', photon_flux2='2.13e-07', job_status='DONE', time_completed='2021-09-10 22:06:10.347390', photon_index_error2='0.18', photon_index2='1.96', ts='90.50', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='0.92', time_epoch_completed='1631336770.35', return_code='0', job_id='9180', GAL2='1.02', EG2='0.95', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.93e-08', ts2='90.95', photon_index='2.12' WHERE bin_id='1508' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:06:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 9180: <4FGL_J1504.4+1029_daily_bin1508> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1508> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:51:10 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:51:12 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:51:12 2021
Terminated at Fri Sep 10 22:06:11 2021
Results reported at Fri Sep 10 22:06:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1508 226.103 10.4978 630201601 630460801 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 :                                   775.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

