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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1008
RA = 226.103, Dec = 10.4978
tmin = 500601601, tmax = 500860801
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='3898', job_status='RUN', time_executed='2021-09-10 21:37:17.829831', time_epoch_executed='1631335037.83' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3898/ft1_4FGL_J1504.4+1029_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3898/ft2_4FGL_J1504.4+1029_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3898/ft1_4FGL_J1504.4+1029_daily_bin1008.fits outfile=/scratch/kocevski/3898/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1008.fits ra=226.103 dec=10.4978 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.15
user 4.90
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3898/ft2_4FGL_J1504.4+1029_daily_bin1008.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/3898/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1008.fits evtable="EVENTS" outfile="/scratch/kocevski/3898/ft1_filtered_4FGL_J1504.4+1029_daily_bin1008.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/3898/ft1_filtered_4FGL_J1504.4+1029_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/3898/ft2_4FGL_J1504.4+1029_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/3898/ltcube_500601601_500860801_4FGL_J1504.4+1029_daily_bin1008.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/3898/ft2_4FGL_J1504.4+1029_daily_bin1008.fits
.....................!
real 12.19
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3898/ft1_filtered_4FGL_J1504.4+1029_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/3898/ft2_4FGL_J1504.4+1029_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/3898/ltcube_500601601_500860801_4FGL_J1504.4+1029_daily_bin1008.fits outfile=/scratch/kocevski/3898/expmap_500601601_500860801_4FGL_J1504.4+1029_daily_bin1008.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/3898/ltcube_500601601_500860801_4FGL_J1504.4+1029_daily_bin1008.fits
.....................!
real 189.17
user 184.77
sys 3.97

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/3898/ft1_filtered_4FGL_J1504.4+1029_daily_bin1008.fits scfile=/scratch/kocevski/3898/ft2_4FGL_J1504.4+1029_daily_bin1008.fits outfile=/scratch/kocevski/3898/cmap_500601601_500860801_4FGL_J1504.4+1029_daily_bin1008.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3898/ft1_filtered_4FGL_J1504.4+1029_daily_bin1008.fits scfile=/scratch/kocevski/3898/ft2_4FGL_J1504.4+1029_daily_bin1008.fits outfile=/scratch/kocevski/3898/cmap_HighResolution_500601601_500860801_4FGL_J1504.4+1029_daily_bin1008.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0931       1.0000         .10000E-03   10000.    
     2 'norm      '    14.721       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.984       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19764E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .67716       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.356       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.513       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.698       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9146       1.0000         .10000E-03   10000.    
    15 'norm      '    .77606       1.0000         .10000E-03   10000.    
    16 'norm      '    12.560       1.0000         .10000E-03   10000.    
    17 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.7878       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12687E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8427       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5978       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7185       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.9840       1.0000         .10000E-03   10000.    
    26 'Prefactor '    79.636       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3058       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90677       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11347.18     FROM MIGRAD    STATUS=CONVERGED     69 CALLS     2920 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0958        1.0983        .16955E-05   -.42066E-03
   2  norm          14.720        1.0479       -.57014E-06    .76289E-03
   3  Prefactor     11.962        1.2106        .11949E-05    .20903E-03
   4  Prefactor     .10004E-03    2.0253       -.13750E-04** at limit **
   5  norm          .67725        1.3717        .73214E-08   -.85982E-04
   6  Prefactor     18.373        4.4003        .72619E-05   -.14312E-01
   7  Prefactor     .10000E-03    5.5937       -.13145E-04** at limit **
   8  norm          4.4188        1.0081       -.60609E-07    .38830E-04
   9  Prefactor     .10000E-03    20.365       -.30453E-04** at limit **
  10  Prefactor     .10018E-03    8.5020        .31070E-04** at limit **
  11  Prefactor     18.508        1.1169       -.70002E-06    .73302E-03
  12  Prefactor     40.697        1.0031        .92872E-07   -.52809E-03
  13  Prefactor     .10013E-03    9.3265        .33992E-04** at limit **
  14  norm          1.9146        .25522        .36717E-07    .17014E-02
  15  norm          .77598        1.6652       -.17741E-06    .67154E-05
  16  norm          12.559        1.0074        .21345E-06    .42154E-03
  17  norm          .10006E-03    7.5029       -.24253E-04** at limit **
  18  norm          9.7878        3.7643        .14040E-05    .36816E-03
  19  Prefactor     .10039E-03    12.112       -.38492E-05** at limit **
  20  Prefactor     2.8446        1.0695        .13636E-05   -.39103E-03
  21  Prefactor     .10000E-03    9.5496        .80833E-05** at limit **
  22  Prefactor     7.5979        4.3121       -.52476E-05   -.88319E-03
  23  Prefactor     3.7203        1.0521        .11115E-05   -.39172E-03
  24  Prefactor     .10000E-03    6.0597       -.32477E-05** at limit **
  25  norm          1.9840        1.4555       -.95726E-07   -.98029E-04
  26  Prefactor     79.634        1.1457       -.45560E-06    .38194E-02
  27  Normalizat    1.3058        .22880       -.39472E-05    .14545E-03
  28  Prefactor     .90679        .13087        .34360E-06    .31573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09582
  norm       = 14.7197
  Prefactor  = 11.9622
  Prefactor  = 0.000100044
  norm       = 0.67725
  Prefactor  = 18.373
  Prefactor  = 0.000100002
  norm       = 4.41883
  Prefactor  = 0.0001
  Prefactor  = 0.000100184
  Prefactor  = 18.5077
  Prefactor  = 40.6968
  Prefactor  = 0.000100125
  norm       = 1.9146
  norm       = 0.775984
  norm       = 12.5587
  norm       = 0.000100065
  norm       = 9.78776
  Prefactor  = 0.000100394
  Prefactor  = 2.84462
  Prefactor  = 0.000100003
  Prefactor  = 7.59786
  Prefactor  = 3.72028
  Prefactor  = 0.0001
  norm       = 1.98404
  Prefactor  = 79.6339
  Normalizat = 1.30576
  Prefactor  = 0.906793
 **********
 **   18 **HESSE 
 **********

 FCN=   11347.18     FROM HESSE     STATUS=OK           587 CALLS     3507 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0958        38.555        .57649E-02   -1.5356    
   2  norm          14.720        20.903        .26098E-02   -1.4940    
   3  Prefactor     11.962        10.521        .28930E-02   -1.5016    
   4  Prefactor     .10004E-03    3.4067        .10120       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .67725        1.6991        .41869E-01   -1.5543    
   6  Prefactor     18.373        59.741        .23371E-02   -1.4850    
   7  Prefactor     .10000E-03    14.571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4188        11.075        .47889E-02   -1.5288    
   9  Prefactor     .10000E-03    32.023        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10018E-03    18.333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.508        16.474        .23271E-02   -1.4847    
  12  Prefactor     40.697        26.397        .15708E-02   -1.4431    
  13  Prefactor     .10013E-03    19.080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9146        .25622        .42187E-02   -1.5431    
  15  norm          .77598        1.6985        .12350E-01   -1.5532    
  16  norm          12.559        6.4094        .28256E-02   -1.4999    
  17  norm          .10006E-03    13.857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.7878        3.7987        .32021E-02   -1.5082    
  19  Prefactor     .10039E-03    28.913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8446        78.393        .60291E-02   -1.5371    
  21  Prefactor     .10000E-03    9.5431        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5979        4.3324        .36372E-02   -1.5157    
  23  Prefactor     3.7203        52.166        .52352E-02   -1.5322    
  24  Prefactor     .10000E-03    6.0523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.9840        1.4560        .73554E-02   -1.5426    
  26  Prefactor     79.634        53.680        .11251E-02   -1.3921    
  27  Normalizat    1.3058        .19758        .73850E-01   -.83395    
  28  Prefactor     .90679        .10913        .45091E-01   -.95904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1186e-06
Minuit parameter uncertainties:
  1  21.8674
  2  20.9137
  3  10.5227
  4  0.000772895
  5  1.69926
  6  59.9361
  7  0.000321741
  8  11.0799
  9  4.62982e-06
  10  0.0036739
  11  16.4783
  12  26.4049
  13  0.00309072
  14  0.256222
  15  1.69858
  16  6.40973
  17  0.0018985
  18  3.7988
  19  0.00675741
  20  29.9091
  21  0.000358987
  22  4.33258
  23  27.891
  24  5.33617e-05
  25  1.45607
  26  53.7122
  27  0.197694
  28  0.10916
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.915e+00  2.562e-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.068e-01  1.092e-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.306e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 202.03
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.66e-07 +/- 6.24e-08
Energy Flux (Fixed Index): 1.89e-04 +/- 2.53e-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) = 11347.061132
delta logL = 0.120318399942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11347.03433
delta logL = 0.147120384983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9231       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0504       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89728       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=   11347.03     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9231        .27416        .42763E-02   -.64000E-05
   2  alpha         2.0504        .14151        .12605       -.13355E-05
   3  Normalizat    1.3316        .19132        .73293E-01    .12972E-04
   4  Prefactor     .89715        .10791        .44970E-01    .91060E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.92309
  alpha      = 2.05038
  Normalizat = 1.33163
  Prefactor  = 0.897154
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9231        .25877        .18901E-04   -1.5431    
   2  alpha         2.0504        .13565        .54959E-03   -.18083    
   3  Normalizat    1.3316        .23295        .32433E-03   -.82627    
   4  Prefactor     .89715        .13082        .22003E-03   -.96241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55143e-14
Minuit parameter uncertainties:
  1  0.25877
  2  0.135715
  3  0.233135
  4  0.130867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3898': 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) = 11347.034329
delta logL = 0.147121325706

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.923e+00  2.588e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.050e+00  1.357e-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:  8.972e-01  1.309e-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.332e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 201.73
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.05 +/- 0.14
Photon Flux (Free Index): 4.44e-07 +/- 7.20e-08
Energy Flux (Free Index): 1.99e-04 +/- 3.33e-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/3898/cmap_HighResolution_500601601_500860801_4FGL_J1504.4+1029_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.66e-07', energy_flux2='1.99e-04', photon_flux_error='6.24e-08', dlogl='1.47e-01', energy_flux='1.89e-04', photon_flux2='4.44e-07', job_status='DONE', time_completed='2021-09-10 21:51:09.272565', photon_index_error2='0.14', photon_index2='2.05', ts='202.03', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='3.33e-05', EG='1.31', time_epoch_completed='1631335869.27', return_code='0', job_id='3898', GAL2='0.90', EG2='1.33', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='7.20e-08', ts2='201.73', photon_index='2.12' WHERE bin_id='1008' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:51:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 3898: <4FGL_J1504.4+1029_daily_bin1008> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1008 226.103 10.4978 500601601 500860801 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 :                                   811.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             316.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            881 sec.

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

