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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin78
RA = 226.103, Dec = 10.4978
tmin = 259545601, tmax = 259804801
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='994701', job_status='RUN', time_executed='2021-09-10 21:06:12.296256', time_epoch_executed='1631333172.3' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994701

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994701/ft1_4FGL_J1504.4+1029_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994701/ft2_4FGL_J1504.4+1029_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994701/ft1_4FGL_J1504.4+1029_daily_bin78.fits outfile=/scratch/kocevski/994701/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin78.fits ra=226.103 dec=10.4978 rad=12.0 tmin=259545601.0 tmax=259804801.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.67
user 1.49
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994701/ft1_filtered_4FGL_J1504.4+1029_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/994701/ft2_4FGL_J1504.4+1029_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/994701/ltcube_259545601_259804801_4FGL_J1504.4+1029_daily_bin78.fits outfile=/scratch/kocevski/994701/expmap_259545601_259804801_4FGL_J1504.4+1029_daily_bin78.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/994701/ltcube_259545601_259804801_4FGL_J1504.4+1029_daily_bin78.fits
.....................!
real 190.68
user 185.38
sys 4.94

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/994701/ft1_filtered_4FGL_J1504.4+1029_daily_bin78.fits scfile=/scratch/kocevski/994701/ft2_4FGL_J1504.4+1029_daily_bin78.fits outfile=/scratch/kocevski/994701/cmap_259545601_259804801_4FGL_J1504.4+1029_daily_bin78.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/994701/ft1_filtered_4FGL_J1504.4+1029_daily_bin78.fits scfile=/scratch/kocevski/994701/ft2_4FGL_J1504.4+1029_daily_bin78.fits outfile=/scratch/kocevski/994701/cmap_HighResolution_259545601_259804801_4FGL_J1504.4+1029_daily_bin78.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/994701/ft1_filtered_4FGL_J1504.4+1029_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/994701/ft2_4FGL_J1504.4+1029_daily_bin78.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994701/Model_4FGL_J1504.4+1029_daily_bin78.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/994701/ft1_filtered_4FGL_J1504.4+1029_daily_bin78.fits.....................!
real 81.88
user 80.52
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5951       1.0000         .10000E-03   10000.    
     5 'norm      '    .30873E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3317       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7574       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2922       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.634       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15073E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.4293       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.371       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99311       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0503       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=   11958.25     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3477 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.634        .18975E-05** at limit **
   2  norm          .10000E-03    10.641        .12393E-06** at limit **
   3  Prefactor     .10000E-03    3.6324       -.40230E-07** at limit **
   4  Prefactor     7.5947        6.4473       -.87317E-08   -.13049E-03
   5  norm          .32548E-01    1.7999        .31505E-06   -.47979E-03
   6  Prefactor     .10000E-03    11.180       -.60487E-06** at limit **
   7  Prefactor     .10000E-03    6.9465       -.13920E-05** at limit **
   8  norm          .10000E-03    5.2390        .97017E-07** at limit **
   9  Prefactor     37.742        28.920        .10507E-06   -.33137E-04
  10  Prefactor     16.789        17.458       -.35432E-06   -.93767E-04
  11  Prefactor     4.3318        16.399        .84089E-05   -.42575E-03
  12  Prefactor     29.161        30.922       -.29588E-05   -.24619E-03
  13  Prefactor     .10000E-03    17.067        .23952E-05** at limit **
  14  norm          3.7574        .33033       -.91679E-08   -.92943E-03
  15  norm          5.2922        2.0689        .46798E-07   -.11666E-03
  16  norm          .10000E-03    2.4929        .27358E-07** at limit **
  17  norm          .10000E-03    13.287       -.14846E-05** at limit **
  18  norm          .10000E-03    1.3938       -.49559E-08** at limit **
  19  Prefactor     46.634        35.869        .84000E-07   -.21119E-04
  20  Prefactor     .10000E-03    13.682       -.12916E-05** at limit **
  21  Prefactor     .10000E-03    26.852       -.19598E-05** at limit **
  22  Prefactor     .10000E-03    2.4265        .30657E-06** at limit **
  23  Prefactor     .10000E-03    11.308       -.78047E-06** at limit **
  24  Prefactor     .10000E-03    7.8347        .22348E-05** at limit **
  25  norm          3.4292        2.0894        .53745E-08    .41889E-04
  26  Prefactor     19.385        77.316        .74539E-05    .10106E-03
  27  Normalizat    .99304        .20185       -.53011E-06   -.11876E-03
  28  Prefactor     1.0503        .11105       -.17133E-06   -.17070E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.59465
  norm       = 0.0325476
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 37.7418
  Prefactor  = 16.7894
  Prefactor  = 4.33175
  Prefactor  = 29.1607
  Prefactor  = 0.000100004
  norm       = 3.75739
  norm       = 5.2922
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 46.6339
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.42919
  Prefactor  = 19.385
  Normalizat = 0.993043
  Prefactor  = 1.05034
 **********
 **   18 **HESSE 
 **********

 FCN=   11958.25     FROM HESSE     STATUS=OK           521 CALLS     3998 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5947        6.4619        .14551E-03   -1.5157    
   5  norm          .32548E-01    1.7487        .46098E-01   -1.5672    
   6  Prefactor     .10000E-03    11.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.2522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.742        29.016        .65241E-04   -1.4479    
  10  Prefactor     16.789        17.473        .97741E-04   -1.4888    
  11  Prefactor     4.3318        18.026        .96772E-03   -1.5292    
  12  Prefactor     29.161        30.982        .74187E-04   -1.4627    
  13  Prefactor     .10000E-03    17.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7574        .33158        .17519E-04   -1.5320    
  15  norm          5.2922        2.0689        .93746E-04   -1.5248    
  16  norm          .10000E-03    2.5164        .16861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4390        .25204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.634        35.886        .58715E-04   -1.4341    
  20  Prefactor     .10000E-03    13.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.418        .32760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.1650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.4292        2.0916        .12008E-03   -1.5338    
  26  Prefactor     19.385        80.061        .91003E-04   -1.4827    
  27  Normalizat    .99304        .23800        .37503E-03   -.93264    
  28  Prefactor     1.0503        .13081        .21248E-03   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67587e-09
Minuit parameter uncertainties:
  1  0.000370755
  2  1.92051e-05
  3  1.82315e-06
  4  6.46248
  5  0.476426
  6  9.52219e-05
  7  0.00017392
  8  1.31547e-05
  9  29.027
  10  17.4784
  11  17.6821
  12  30.9988
  13  0.000500977
  14  0.331582
  15  2.06891
  16  2.49017e-06
  17  0.000256979
  18  4.41471e-07
  19  35.9027
  20  0.000225738
  21  0.000457742
  22  0.000230403
  23  0.000122971
  24  0.000297431
  25  2.09165
  26  78.9728
  27  0.238253
  28  0.130849
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.757e+00  3.316e-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.050e+00  1.308e-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.930e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 479.28
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.15e-07 +/- 8.07e-08
Energy Flux (Fixed Index): 3.70e-04 +/- 3.27e-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) = 11957.3405359
delta logL = 0.906237529894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11957.3405218
delta logL = 0.906251659189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6582       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2510       1.0000          .0000       5.0000    
     3 'Normalizat'    .92480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0763       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=   11957.34     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6581        .37140        .38453E-02    .18315E-03
   2  alpha         2.2510        .10631        .84126E-01    .43078E-04
   3  Normalizat    .92498        .19584        .87187E-01    .37213E-04
   4  Prefactor     1.0762        .11208        .38568E-01    .25298E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.65815
  alpha      = 2.25101
  Normalizat = 0.924983
  Prefactor  = 1.07616
 **********
 **   18 **HESSE 
 **********

 FCN=   11957.34     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6581        .33034        .16993E-04   -1.5325    
   2  alpha         2.2510        .95164E-01    .37025E-03   -.99761E-01
   3  Normalizat    .92498        .22932        .38608E-03   -.95588    
   4  Prefactor     1.0762        .13115        .21006E-03   -.90232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20486e-12
Minuit parameter uncertainties:
  1  0.330345
  2  0.095187
  3  0.229563
  4  0.131188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994701': 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) = 11957.3405215
delta logL = 0.906252010604

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.658e+00  3.303e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.251e+00  9.519e-02  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.076e+00  1.312e-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.250e-01  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 479.10
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.25 +/- 0.10
Photon Flux (Free Index): 9.81e-07 +/- 9.71e-08
Energy Flux (Free Index): 3.42e-04 +/- 3.50e-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/994701/cmap_HighResolution_259545601_259804801_4FGL_J1504.4+1029_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.15e-07', energy_flux2='3.42e-04', photon_flux_error='8.07e-08', dlogl='9.06e-01', energy_flux='3.70e-04', photon_flux2='9.81e-07', job_status='DONE', time_completed='2021-09-10 21:20:48.852297', photon_index_error2='0.10', photon_index2='2.25', ts='479.28', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.50e-05', EG='0.99', time_epoch_completed='1631334048.85', return_code='0', job_id='994701', GAL2='1.08', EG2='0.92', return_code2='0', energy_flux_error='3.27e-05', photon_flux_error2='9.71e-08', ts2='479.10', photon_index='2.12' WHERE bin_id='78' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:20:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 994701: <4FGL_J1504.4+1029_daily_bin78> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin78> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:06:01 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:06:03 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:06:03 2021
Terminated at Fri Sep 10 21:20:49 2021
Results reported at Fri Sep 10 21:20:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin78 226.103 10.4978 259545601 259804801 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 :                                   873.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            888 sec.

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

