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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1303
RA = 226.103, Dec = 10.4978
tmin = 577065601, tmax = 577324801
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='7759', job_status='RUN', time_executed='2021-09-10 21:46:27.184459', time_epoch_executed='1631335587.18' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7759/ft1_4FGL_J1504.4+1029_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7759/ft2_4FGL_J1504.4+1029_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7759/ft1_4FGL_J1504.4+1029_daily_bin1303.fits outfile=/scratch/kocevski/7759/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1303.fits ra=226.103 dec=10.4978 rad=12.0 tmin=577065601.0 tmax=577324801.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.08
user 2.88
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7759/ft1_filtered_4FGL_J1504.4+1029_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/7759/ft2_4FGL_J1504.4+1029_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/7759/ltcube_577065601_577324801_4FGL_J1504.4+1029_daily_bin1303.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/7759/ft2_4FGL_J1504.4+1029_daily_bin1303.fits
.....................!
real 12.63
user 12.19
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7759/ft1_filtered_4FGL_J1504.4+1029_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/7759/ft2_4FGL_J1504.4+1029_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/7759/ltcube_577065601_577324801_4FGL_J1504.4+1029_daily_bin1303.fits outfile=/scratch/kocevski/7759/expmap_577065601_577324801_4FGL_J1504.4+1029_daily_bin1303.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/7759/ltcube_577065601_577324801_4FGL_J1504.4+1029_daily_bin1303.fits
.....................!
real 190.69
user 184.88
sys 5.25

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/7759/ft1_filtered_4FGL_J1504.4+1029_daily_bin1303.fits scfile=/scratch/kocevski/7759/ft2_4FGL_J1504.4+1029_daily_bin1303.fits outfile=/scratch/kocevski/7759/cmap_577065601_577324801_4FGL_J1504.4+1029_daily_bin1303.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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7759/ft1_filtered_4FGL_J1504.4+1029_daily_bin1303.fits scfile=/scratch/kocevski/7759/ft2_4FGL_J1504.4+1029_daily_bin1303.fits outfile=/scratch/kocevski/7759/cmap_HighResolution_577065601_577324801_4FGL_J1504.4+1029_daily_bin1303.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.989       1.0000         .10000E-03   10000.    
     2 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12206E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.676       1.0000         .10000E-03   10000.    
     8 'norm      '    .22275E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    93.723       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.771       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.692       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0304       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3080       1.0000         .10000E-03   10000.    
    17 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.295       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.972       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.393       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3765       1.0000         .10000E-03   10000.    
    26 'Prefactor '    82.779       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98090       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85819       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3884.237     FROM MIGRAD    STATUS=CONVERGED   1231 CALLS     4666 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.010        171.49        .78579E-04   -.92594E-05
   2  norm          .10000E-03    42.782        .18142E-02** at limit **
   3  Prefactor     10.341        16.668        .12459E-03   -.54288E-03
   4  Prefactor     .10000E-03    51.877        .36285E-03** at limit **
   5  norm          6.7241        5.4656        .12385E-03   -.56837E-03
   6  Prefactor     .10000E-03    91.201        .18142E-02** at limit **
   7  Prefactor     11.497        349.12        .11724E-03   -.43636E-05
   8  norm          .10000E-03    130.47        .13629    ** at limit **
   9  Prefactor     93.641        59.120        .20757E-03   -.19915E-03
  10  Prefactor     .10000E-03    40.469        .18142E-02** at limit **
  11  Prefactor     .10000E-03    18.205        .18142E-02** at limit **
  12  Prefactor     26.755        37.382        .77426E-04    .21217E-04
  13  Prefactor     56.679        54.523        .26639E-03   -.13721E-04
  14  norm          1.0303        .38528        .22051E-04   -.19823E-02
  15  norm          .10000E-03    1.8765        .83291E-03** at limit **
  16  norm          1.3111        27.081        .38573E-03   -.64516E-04
  17  norm          .10000E-03    19.197        .18142E-02** at limit **
  18  norm          14.296        8.9144        .10594E-03    .13200E-04
  19  Prefactor     41.982        61.370        .61876E-04   -.48230E-04
  20  Prefactor     .10000E-03    43.075        .18142E-02** at limit **
  21  Prefactor     .10000E-03    28.884        .18142E-02** at limit **
  22  Prefactor     .10000E-03    5.4816        .14222E-02** at limit **
  23  Prefactor     43.381        49.755        .60859E-04   -.18027E-04
  24  Prefactor     .10000E-03    21.953        .18142E-02** at limit **
  25  norm          4.3769        3.5868        .10263E-03   -.40102E-04
  26  Prefactor     82.857        132.95        .44148E-04    .10635E-04
  27  Normalizat    .98227        .43412        .35946E-03   -.36541E-03
  28  Prefactor     .85752        .22228        .21105E-03   -.40890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.01
  norm       = 0.0001
  Prefactor  = 10.341
  Prefactor  = 0.0001
  norm       = 6.7241
  Prefactor  = 0.0001
  Prefactor  = 11.497
  norm       = 0.000100004
  Prefactor  = 93.6408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7551
  Prefactor  = 56.6791
  norm       = 1.03026
  norm       = 0.0001
  norm       = 1.31113
  norm       = 0.0001
  norm       = 14.2957
  Prefactor  = 41.9817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.3805
  Prefactor  = 0.0001
  norm       = 4.37689
  Prefactor  = 82.8566
  Normalizat = 0.982273
  Prefactor  = 0.85752
 **********
 **   18 **HESSE 
 **********

 FCN=   3884.237     FROM HESSE     STATUS=OK           501 CALLS     5167 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.010        171.52        .15716E-04   -1.4688    
   2  norm          .10000E-03    42.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.341        16.667        .49837E-05   -1.5065    
   4  Prefactor     .10000E-03    51.879        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7241        5.4653        .49541E-05   -1.5189    
   6  Prefactor     .10000E-03    91.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.497        350.25        .46896E-05   -1.5030    
   8  norm          .10000E-03    131.75        .13567       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     93.641        59.122        .83027E-05   -1.3770    
  10  Prefactor     .10000E-03    40.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.755        37.377        .30971E-05   -1.4673    
  13  Prefactor     56.679        54.520        .10656E-04   -1.4201    
  14  norm          1.0303        .38522        .88206E-06   -1.5505    
  15  norm          .10000E-03    1.8765        .16658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3111        27.065        .15429E-04   -1.5479    
  17  norm          .10000E-03    19.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.296        8.9144        .42374E-05   -1.4952    
  19  Prefactor     41.982        61.370        .12375E-04   -1.4411    
  20  Prefactor     .10000E-03    43.077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.4821        .28443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     43.381        49.748        .24343E-05   -1.4390    
  24  Prefactor     .10000E-03    21.953        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.3769        3.5868        .41050E-05   -1.5290    
  26  Prefactor     82.857        132.97        .88297E-05   -1.3885    
  27  Normalizat    .98227        .43454        .71891E-04   -.93627    
  28  Prefactor     .85752        .22249        .42210E-04   -.97642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25394e-09
Minuit parameter uncertainties:
  1  134.145
  2  3.36362e-05
  3  16.6749
  4  0.000144009
  5  5.46575
  6  0.000136324
  7  127.742
  8  0.00138638
  9  59.1587
  10  8.60922e-05
  11  1.72111e-05
  12  37.4099
  13  54.5684
  14  0.385221
  15  5.20387e-07
  16  11.9197
  17  4.73054e-06
  18  8.91524
  19  61.4629
  20  8.03697e-05
  21  6.44064e-05
  22  1.21122e-05
  23  49.7958
  24  1.36511e-05
  25  3.58702
  26  133.448
  27  0.436117
  28  0.222724
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.030e+00  3.852e-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:  8.575e-01  2.227e-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.823e-01  4.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.55
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.51e-07 +/- 9.37e-08
Energy Flux (Fixed Index): 1.02e-04 +/- 3.80e-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) = 3883.70201625
delta logL = 0.534826208157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3883.67738636
delta logL = 0.559456103548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0114       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5080       1.0000          .0000       5.0000    
     3 'Normalizat'    .90637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88528       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=   3883.677     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0114        .92054        .46438E-02    .22757E-03
   2  alpha         2.5080        .88686        .18974       -.35776E-04
   3  Normalizat    .90629        .33111        .84074E-01    .13221E-04
   4  Prefactor     .88524        .18559        .44817E-01    .67172E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01144
  alpha      = 2.50798
  Normalizat = 0.906292
  Prefactor  = 0.88524
 **********
 **   18 **HESSE 
 **********

 FCN=   3883.677     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0114        .37044        .20579E-04   -1.5507    
   2  alpha         2.5080        .37382        .81797E-02    .31936E-02
   3  Normalizat    .90629        .39259        .37225E-03   -.96239    
   4  Prefactor     .88524        .21594        .20797E-03   -.96659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58001e-11
Minuit parameter uncertainties:
  1  0.370442
  2  0.375229
  3  0.393835
  4  0.216152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7759': 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) = 3883.67738602
delta logL = 0.559456445308

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.011e+00  3.704e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.508e+00  3.752e-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.852e-01  2.162e-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.063e-01  3.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.48
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.51 +/- 0.38
Photon Flux (Free Index): 3.39e-07 +/- 1.40e-07
Energy Flux (Free Index): 9.28e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/7759/cmap_HighResolution_577065601_577324801_4FGL_J1504.4+1029_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-07', energy_flux2='9.28e-05', photon_flux_error='9.37e-08', dlogl='5.59e-01', energy_flux='1.02e-04', photon_flux2='3.39e-07', job_status='DONE', time_completed='2021-09-10 21:55:16.966804', photon_index_error2='0.38', photon_index2='2.51', ts='16.55', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.98', time_epoch_completed='1631336116.97', return_code='0', job_id='7759', GAL2='0.89', EG2='0.91', return_code2='0', energy_flux_error='3.80e-05', photon_flux_error2='1.40e-07', ts2='17.48', photon_index='2.12' WHERE bin_id='1303' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:55:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 7759: <4FGL_J1504.4+1029_daily_bin1303> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1303> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:07 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46:08 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:46:08 2021
Terminated at Fri Sep 10 21:55:17 2021
Results reported at Fri Sep 10 21:55:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1303 226.103 10.4978 577065601 577324801 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 :                                   525.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            550 sec.

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

