/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 140 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin18
RA = 226.103, Dec = 10.4978
tmin = 243993601, tmax = 244252801
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='993458', job_status='RUN', time_executed='2021-09-10 21:03:44.583419', time_epoch_executed='1631333024.58' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993458

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993458/ft1_4FGL_J1504.4+1029_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993458/ft2_4FGL_J1504.4+1029_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993458/ft1_4FGL_J1504.4+1029_daily_bin18.fits outfile=/scratch/kocevski/993458/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin18.fits ra=226.103 dec=10.4978 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.40
user 1.24
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993458/ft2_4FGL_J1504.4+1029_daily_bin18.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/993458/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/993458/ft1_filtered_4FGL_J1504.4+1029_daily_bin18.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.48
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993458/ft1_filtered_4FGL_J1504.4+1029_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/993458/ft2_4FGL_J1504.4+1029_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/993458/ltcube_243993601_244252801_4FGL_J1504.4+1029_daily_bin18.fits outfile=/scratch/kocevski/993458/expmap_243993601_244252801_4FGL_J1504.4+1029_daily_bin18.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/993458/ltcube_243993601_244252801_4FGL_J1504.4+1029_daily_bin18.fits
.....................!
real 189.70
user 184.83
sys 4.53

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/993458/ft1_filtered_4FGL_J1504.4+1029_daily_bin18.fits scfile=/scratch/kocevski/993458/ft2_4FGL_J1504.4+1029_daily_bin18.fits outfile=/scratch/kocevski/993458/cmap_243993601_244252801_4FGL_J1504.4+1029_daily_bin18.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.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993458/ft1_filtered_4FGL_J1504.4+1029_daily_bin18.fits scfile=/scratch/kocevski/993458/ft2_4FGL_J1504.4+1029_daily_bin18.fits outfile=/scratch/kocevski/993458/cmap_HighResolution_243993601_244252801_4FGL_J1504.4+1029_daily_bin18.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.793       1.0000         .10000E-03   10000.    
     2 'norm      '    7.4944       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    46.550       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5058       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.068       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9017       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8133       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.4108       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.540       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1833       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15404E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.9162       1.0000         .10000E-03   10000.    
    26 'Prefactor '    115.70       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95330       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=   7113.243     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3506 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.787        32.038        .62623E-06    .18801E-04
   2  norm          7.4945        19.908       -.75344E-07   -.56580E-05
   3  Prefactor     .15122        5.8817       -.17914E-05    .24258E-03
   4  Prefactor     .10000E-03    3.0945       -.13119E-08** at limit **
   5  norm          .10000E-03    1.4218        .32365E-08** at limit **
   6  Prefactor     .10000E-03    79.638        .22393E-05** at limit **
   7  Prefactor     .10000E-03    16.565       -.47215E-06** at limit **
   8  norm          46.549        21.552       -.25301E-06    .32550E-04
   9  Prefactor     15.638        23.281        .22705E-06    .90594E-05
  10  Prefactor     1.5015        61.973        .19500E-04    .42306E-04
  11  Prefactor     .10000E-03    15.174       -.15495E-05** at limit **
  12  Prefactor     .10000E-03    13.257        .12035E-05** at limit **
  13  Prefactor     16.068        27.112        .25155E-06    .63978E-05
  14  norm          1.9017        .29905       -.11462E-07    .75079E-03
  15  norm          2.8130        2.1423        .11063E-07   -.16162E-04
  16  norm          .10000E-03    4.9853        .29127E-08** at limit **
  17  norm          .10000E-03    15.047       -.17474E-05** at limit **
  18  norm          8.4112        4.7624        .11688E-06    .52614E-04
  19  Prefactor     30.535        42.906        .10181E-05    .17378E-04
  20  Prefactor     9.1759        26.771        .77687E-06    .13784E-04
  21  Prefactor     .10000E-03    45.534       -.15533E-05** at limit **
  22  Prefactor     .10000E-03    3.8336       -.19301E-05** at limit **
  23  Prefactor     .10000E-03    17.982        .26210E-05** at limit **
  24  Prefactor     .10000E-03    10.080       -.11554E-06** at limit **
  25  norm          1.9163        2.0087        .55778E-08   -.19507E-04
  26  Prefactor     115.70        79.432       -.27839E-06   -.61909E-05
  27  Normalizat    1.0962        .23070       -.99050E-06    .16359E-03
  28  Prefactor     .95310        .13080        .22741E-07    .17692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.787
  norm       = 7.49451
  Prefactor  = 0.15122
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 46.5491
  Prefactor  = 15.6382
  Prefactor  = 1.50147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0677
  norm       = 1.90166
  norm       = 2.81305
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.41116
  Prefactor  = 30.5346
  Prefactor  = 9.17592
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91628
  Prefactor  = 115.699
  Normalizat = 1.09624
  Prefactor  = 0.953095
 **********
 **   18 **HESSE 
 **********

 FCN=   7113.243     FROM HESSE     STATUS=OK           521 CALLS     4027 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.787        32.077        .73402E-04   -1.4616    
   2  norm          7.4945        19.901        .14650E-03   -1.5160    
   3  Prefactor     .15122        64.290        .37429E-02   -1.5630    
   4  Prefactor     .10000E-03    3.1147        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4280        .98191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    79.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          46.549        21.571        .58768E-04   -1.4342    
   9  Prefactor     15.638        23.324        .10128E-03   -1.4917    
  10  Prefactor     1.5015        64.872        .17438E-02   -1.5463    
  11  Prefactor     .10000E-03    15.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.068        27.128        .49958E-03   -1.4906    
  14  norm          1.9017        .29987        .17453E-04   -1.5432    
  15  norm          2.8130        2.1353        .10212E-03   -1.5373    
  16  norm          .10000E-03    5.0507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.4112        4.7616        .13224E-03   -1.5128    
  19  Prefactor     30.535        42.991        .72502E-04   -1.4602    
  20  Prefactor     9.1759        26.773        .13225E-03   -1.5102    
  21  Prefactor     .10000E-03    45.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.308        .29574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.9163        2.0113        .11925E-03   -1.5431    
  26  Prefactor     115.70        79.462        .18703E-03   -1.3553    
  27  Normalizat    1.0962        .27798        .32776E-03   -.89873    
  28  Prefactor     .95310        .15717        .20540E-03   -.94310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59972e-09
Minuit parameter uncertainties:
  1  32.0952
  2  19.9189
  3  6.24067
  4  3.36358e-06
  5  3.89843e-07
  6  0.000170609
  7  2.32781e-05
  8  21.5743
  9  23.338
  10  19.7609
  11  2.94015e-05
  12  4.34494e-05
  13  27.1489
  14  0.299869
  15  2.13534
  16  3.94508e-07
  17  7.33599e-05
  18  4.76178
  19  43.0347
  20  26.8082
  21  4.47318e-05
  22  0.0004847
  23  0.000113236
  24  1.48975e-06
  25  2.01142
  26  79.5351
  27  0.278353
  28  0.157243
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.902e+00  2.999e-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.531e-01  1.572e-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.096e+00  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 152.91
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.63e-07 +/- 7.30e-08
Energy Flux (Fixed Index): 1.87e-04 +/- 2.96e-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) = 7111.957988
delta logL = 1.28528304128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7111.93824944
delta logL = 1.305021594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8969       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8675       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92348       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=   7111.938     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8968        .30824        .40956E-02   -.77133E-04
   2  alpha         1.8673        .15176        .11623       -.16468E-04
   3  Normalizat    1.1768        .22149        .71994E-01    .14522E-04
   4  Prefactor     .92345        .12913        .45304E-01    .76957E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8968
  alpha      = 1.86731
  Normalizat = 1.17679
  Prefactor  = 0.923446
 **********
 **   18 **HESSE 
 **********

 FCN=   7111.938     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .30E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8968        .31356        .18094E-04   -1.5433    
   2  alpha         1.8673        .15644        .50773E-03   -.25586    
   3  Normalizat    1.1768        .26733        .31858E-03   -.87323    
   4  Prefactor     .92345        .15544        .20847E-03   -.95327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98007e-15
Minuit parameter uncertainties:
  1  0.313563
  2  0.156554
  3  0.267636
  4  0.155511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993458': 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) = 7111.93824852
delta logL = 1.3050225184

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.897e+00  3.136e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.867e+00  1.566e-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.234e-01  1.555e-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.177e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 154.74
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.87 +/- 0.16
Photon Flux (Free Index): 3.92e-07 +/- 7.78e-08
Energy Flux (Free Index): 2.33e-04 +/- 5.25e-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/993458/cmap_HighResolution_243993601_244252801_4FGL_J1504.4+1029_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.63e-07', energy_flux2='2.33e-04', photon_flux_error='7.30e-08', dlogl='1.31e+00', energy_flux='1.87e-04', photon_flux2='3.92e-07', job_status='DONE', time_completed='2021-09-10 21:14:33.835210', photon_index_error2='0.16', photon_index2='1.87', ts='152.91', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='5.25e-05', EG='1.10', time_epoch_completed='1631333673.84', return_code='0', job_id='993458', GAL2='0.92', EG2='1.18', return_code2='0', energy_flux_error='2.96e-05', photon_flux_error2='7.78e-08', ts2='154.74', photon_index='2.12' WHERE bin_id='18' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:14:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 993458: <4FGL_J1504.4+1029_daily_bin18> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin18> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 21:01:13 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:01:15 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:01:15 2021
Terminated at Fri Sep 10 21:14:34 2021
Results reported at Fri Sep 10 21:14:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin18 226.103 10.4978 243993601 244252801 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 :                                   649.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

