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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin21
RA = 226.103, Dec = 10.4978
tmin = 244771201, tmax = 245030401
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='993462', job_status='RUN', time_executed='2021-09-10 21:05:09.755804', time_epoch_executed='1631333109.76' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993462/ft1_4FGL_J1504.4+1029_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993462/ft2_4FGL_J1504.4+1029_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993462/ft1_4FGL_J1504.4+1029_daily_bin21.fits outfile=/scratch/kocevski/993462/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin21.fits ra=226.103 dec=10.4978 rad=12.0 tmin=244771201.0 tmax=245030401.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.43
user 1.27
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993462/ft1_filtered_4FGL_J1504.4+1029_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/993462/ft2_4FGL_J1504.4+1029_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/993462/ltcube_244771201_245030401_4FGL_J1504.4+1029_daily_bin21.fits outfile=/scratch/kocevski/993462/expmap_244771201_245030401_4FGL_J1504.4+1029_daily_bin21.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/993462/ltcube_244771201_245030401_4FGL_J1504.4+1029_daily_bin21.fits
.....................!
real 189.82
user 184.58
sys 4.90

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/993462/ft1_filtered_4FGL_J1504.4+1029_daily_bin21.fits scfile=/scratch/kocevski/993462/ft2_4FGL_J1504.4+1029_daily_bin21.fits outfile=/scratch/kocevski/993462/cmap_244771201_245030401_4FGL_J1504.4+1029_daily_bin21.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.53
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.662       1.0000         .10000E-03   10000.    
     2 'norm      '    11.572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.872       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16797E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.890       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.398       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.574       1.0000         .10000E-03   10000.    
    14 'norm      '    .94165       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0796       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.852       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9156       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.8630       1.0000         .10000E-03   10000.    
    25 'norm      '    2.8368       1.0000         .10000E-03   10000.    
    26 'Prefactor '    66.098       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1081       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92940       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=   8222.792     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     4156 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.664        29.360       -.76717E-07   -.25171E-04
   2  norm          11.572        18.979       -.43855E-06   -.25954E-04
   3  Prefactor     .10000E-03    6.5964        .29828E-06** at limit **
   4  Prefactor     13.868        8.0690       -.17765E-06    .25791E-04
   5  norm          .10000E-03    2.5547        .50499E-06** at limit **
   6  Prefactor     .10000E-03    69.405        .57596E-04** at limit **
   7  Prefactor     .10000E-03    23.272        .59355E-05** at limit **
   8  norm          10.869        17.407        .66181E-06   -.11569E-03
   9  Prefactor     .10000E-03    44.448       -.21279E-04** at limit **
  10  Prefactor     .10000E-03    16.127       -.60813E-06** at limit **
  11  Prefactor     .10000E-03    10.433        .62603E-06** at limit **
  12  Prefactor     19.388        29.443       -.30053E-05    .11394E-03
  13  Prefactor     41.572        45.603        .44182E-06    .46034E-04
  14  norm          .94169        .21605       -.54668E-07   -.24890E-04
  15  norm          .10000E-03    .95477        .52291E-06** at limit **
  16  norm          .10000E-03    3.4538       -.20396E-06** at limit **
  17  norm          .10000E-03    106.31       -.47971E-04** at limit **
  18  norm          6.0798        3.1049        .59364E-07    .31419E-04
  19  Prefactor     .10000E-03    23.768        .94794E-06** at limit **
  20  Prefactor     .10000E-03    9.3367       -.48621E-06** at limit **
  21  Prefactor     17.846        28.489       -.30912E-05    .37071E-05
  22  Prefactor     .10000E-03    1.9606       -.73323E-07** at limit **
  23  Prefactor     5.9113        51.931       -.71201E-05   -.95475E-05
  24  Prefactor     9.8643        16.300       -.16987E-06   -.21664E-04
  25  norm          2.8369        2.5643        .24390E-07   -.25418E-03
  26  Prefactor     66.100        55.924        .12578E-05    .72755E-06
  27  Normalizat    1.1082        .20618        .75877E-06   -.50914E-04
  28  Prefactor     .92936        .11381        .10029E-06    .31657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6637
  norm       = 11.5723
  Prefactor  = 0.0001
  Prefactor  = 13.8681
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8689
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3879
  Prefactor  = 41.5717
  norm       = 0.941691
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 6.07978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8462
  Prefactor  = 0.0001
  Prefactor  = 5.91125
  Prefactor  = 9.86435
  norm       = 2.83685
  Prefactor  = 66.1003
  Normalizat = 1.10816
  Prefactor  = 0.929364
 **********
 **   18 **HESSE 
 **********

 FCN=   8222.792     FROM HESSE     STATUS=OK           521 CALLS     4677 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.664        29.406        .95301E-04   -1.4867    
   2  norm          11.572        18.967        .11777E-03   -1.5027    
   3  Prefactor     .10000E-03    6.6997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.868        8.1098        .10754E-03   -1.4963    
   5  norm          .10000E-03    2.6550        .28293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    69.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.869        17.389        .12141E-03   -1.5048    
   9  Prefactor     .10000E-03    44.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.388        29.435        .90938E-04   -1.4827    
  13  Prefactor     41.572        45.540        .62171E-04   -1.4418    
  14  norm          .94169        .21634        .19196E-04   -1.5514    
  15  norm          .10000E-03    .98253        .17275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.4762        .16456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    107.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0798        3.1062        .11085E-03   -1.5215    
  19  Prefactor     .10000E-03    23.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.3414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.846        28.601        .94793E-04   -1.4863    
  22  Prefactor     .10000E-03    5.0814        .24661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9113        51.871        .16510E-03   -1.5222    
  24  Prefactor     9.8643        16.308        .12759E-03   -1.5080    
  25  norm          2.8369        2.5573        .13344E-03   -1.5371    
  26  Prefactor     66.100        55.931        .24682E-03   -1.4080    
  27  Normalizat    1.1082        .25009        .31174E-03   -.89490    
  28  Prefactor     .92936        .13756        .19670E-03   -.95122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76621e-10
Minuit parameter uncertainties:
  1  29.43
  2  18.9766
  3  1.92627e-06
  4  8.1104
  5  4.68512e-07
  6  0.000297441
  7  5.41698e-05
  8  17.3971
  9  0.000309331
  10  3.40058e-06
  11  4.17633e-05
  12  29.4574
  13  45.578
  14  0.216343
  15  4.15653e-06
  16  9.78748e-07
  17  0.000630567
  18  3.10633
  19  1.29113e-05
  20  2.34316e-06
  21  28.6229
  22  7.23377e-06
  23  35.0616
  24  16.3155
  25  2.55739
  26  55.975
  27  0.250357
  28  0.137615
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.417e-01  2.163e-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.294e-01  1.376e-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.108e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 53.16
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.29e-07 +/- 5.26e-08
Energy Flux (Fixed Index): 9.28e-05 +/- 2.13e-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) = 8221.80815222
delta logL = 0.984161435201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8221.80702527
delta logL = 0.985288385111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88074       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4797       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95894       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=   8221.807     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88079        2.6140        .39250E-02    .23646E-03
   2  alpha         2.4796        3.6760        .17870        .41793E-04
   3  Normalizat    1.0314        .21505        .72570E-01    .21910E-04
   4  Prefactor     .95895        .11795        .45752E-01    .50660E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.88079
  alpha      = 2.47962
  Normalizat = 1.03136
  Prefactor  = 0.958954
 **********
 **   18 **HESSE 
 **********

 FCN=   8221.807     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88079        .21389        .17374E-04   -1.5520    
   2  alpha         2.4796        .26369        .76737E-02   -.81536E-02
   3  Normalizat    1.0314        .23865        .32112E-03   -.91987    
   4  Prefactor     .95895        .13711        .19389E-03   -.94110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71023e-13
Minuit parameter uncertainties:
  1  0.21389
  2  0.264185
  3  0.238897
  4  0.137163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993462': 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) = 8221.80702521
delta logL = 0.985288438505

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.808e-01  2.139e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.480e+00  2.642e-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.590e-01  1.372e-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.031e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 55.21
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.48 +/- 0.26
Photon Flux (Free Index): 2.87e-07 +/- 7.21e-08
Energy Flux (Free Index): 8.06e-05 +/- 1.88e-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/993462/cmap_HighResolution_244771201_245030401_4FGL_J1504.4+1029_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.29e-07', energy_flux2='8.06e-05', photon_flux_error='5.26e-08', dlogl='9.85e-01', energy_flux='9.28e-05', photon_flux2='2.87e-07', job_status='DONE', time_completed='2021-09-10 21:17:27.121883', photon_index_error2='0.26', photon_index2='2.48', ts='53.16', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.11', time_epoch_completed='1631333847.12', return_code='0', job_id='993462', GAL2='0.96', EG2='1.03', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='7.21e-08', ts2='55.21', photon_index='2.12' WHERE bin_id='21' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:17:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 993462: <4FGL_J1504.4+1029_daily_bin21> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin21> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 21:01:14 2021
Job was executed on host(s) <bullet0281>, 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:17:27 2021
Results reported at Fri Sep 10 21:17:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin21 226.103 10.4978 244771201 245030401 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 :                                   737.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

