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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin95
RA = 226.103, Dec = 10.4978
tmin = 263952001, tmax = 264211201
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='994722', job_status='RUN', time_executed='2021-09-10 21:08:18.049894', time_epoch_executed='1631333298.05' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994722/ft1_4FGL_J1504.4+1029_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994722/ft2_4FGL_J1504.4+1029_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994722/ft1_4FGL_J1504.4+1029_daily_bin95.fits outfile=/scratch/kocevski/994722/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin95.fits ra=226.103 dec=10.4978 rad=12.0 tmin=263952001.0 tmax=264211201.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.73
user 1.51
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994722/ft2_4FGL_J1504.4+1029_daily_bin95.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/994722/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/994722/ft1_filtered_4FGL_J1504.4+1029_daily_bin95.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994722/ft1_filtered_4FGL_J1504.4+1029_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/994722/ft2_4FGL_J1504.4+1029_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/994722/ltcube_263952001_264211201_4FGL_J1504.4+1029_daily_bin95.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/994722/ft2_4FGL_J1504.4+1029_daily_bin95.fits
.....................!
real 12.74
user 12.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994722/ft1_filtered_4FGL_J1504.4+1029_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/994722/ft2_4FGL_J1504.4+1029_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/994722/ltcube_263952001_264211201_4FGL_J1504.4+1029_daily_bin95.fits outfile=/scratch/kocevski/994722/expmap_263952001_264211201_4FGL_J1504.4+1029_daily_bin95.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/994722/ltcube_263952001_264211201_4FGL_J1504.4+1029_daily_bin95.fits
.....................!
real 190.30
user 184.44
sys 5.38

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/994722/ft1_filtered_4FGL_J1504.4+1029_daily_bin95.fits scfile=/scratch/kocevski/994722/ft2_4FGL_J1504.4+1029_daily_bin95.fits outfile=/scratch/kocevski/994722/cmap_263952001_264211201_4FGL_J1504.4+1029_daily_bin95.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994722/ft1_filtered_4FGL_J1504.4+1029_daily_bin95.fits scfile=/scratch/kocevski/994722/ft2_4FGL_J1504.4+1029_daily_bin95.fits outfile=/scratch/kocevski/994722/cmap_HighResolution_263952001_264211201_4FGL_J1504.4+1029_daily_bin95.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/994722/ft1_filtered_4FGL_J1504.4+1029_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/994722/ft2_4FGL_J1504.4+1029_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994722/Model_4FGL_J1504.4+1029_daily_bin95.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/994722/ft1_filtered_4FGL_J1504.4+1029_daily_bin95.fits.....................!
real 76.34
user 74.82
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.827       1.0000         .10000E-03   10000.    
     2 'norm      '    15.506       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5190       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.554       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4149       1.0000         .10000E-03   10000.    
    15 'norm      '    6.1628       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    26.123       1.0000         .10000E-03   10000.    
    18 'norm      '    .10435E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9008       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.968       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.948       1.0000         .10000E-03   10000.    
    25 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    68.253       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1618       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94531       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=   10948.15     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3486 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.826        25.376        .44570E-07    .13756E-03
   2  norm          15.507        19.627        .15820E-05    .11393E-03
   3  Prefactor     .10000E-03    1.9272       -.63085E-07** at limit **
   4  Prefactor     .10000E-03    2.4807       -.67652E-07** at limit **
   5  norm          .10000E-03    1.0569       -.10894E-06** at limit **
   6  Prefactor     2.4448        260.10       -.36450E-03    .70377E-04
   7  Prefactor     .10000E-03    11.673        .45864E-05** at limit **
   8  norm          .10000E-03    5.8105        .40832E-07** at limit **
   9  Prefactor     .10000E-03    7.8416        .18382E-05** at limit **
  10  Prefactor     .10000E-03    48.417        .62706E-05** at limit **
  11  Prefactor     17.555        15.084       -.19505E-05    .57948E-04
  12  Prefactor     .10000E-03    9.3107       -.48337E-05** at limit **
  13  Prefactor     .10000E-03    18.690       -.46919E-05** at limit **
  14  norm          3.4149        .32315       -.70024E-07    .24702E-02
  15  norm          6.1619        2.4868       -.23282E-06    .49554E-04
  16  norm          .10000E-03    2.1223       -.16503E-05** at limit **
  17  norm          26.123        36.447       -.99833E-08    .21543E-05
  18  norm          .10000E-03    2.0549        .15606E-05** at limit **
  19  Prefactor     .10000E-03    14.696        .11007E-05** at limit **
  20  Prefactor     7.8979        26.467       -.62610E-05   -.15207E-04
  21  Prefactor     11.964        27.538       -.80275E-05    .21245E-04
  22  Prefactor     .10000E-03    1.8260       -.14710E-06** at limit **
  23  Prefactor     .10000E-03    20.878       -.15327E-06** at limit **
  24  Prefactor     11.949        21.736       -.12036E-05   -.49001E-05
  25  norm          .10000E-03    .80769       -.24534E-06** at limit **
  26  Prefactor     68.244        68.071       -.98519E-05    .11879E-04
  27  Normalizat    1.1619        .20118        .94371E-05    .28502E-03
  28  Prefactor     .94527        .11193        .53684E-06    .11396E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8263
  norm       = 15.507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.4448
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 17.5546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41493
  norm       = 6.16188
  norm       = 0.0001
  norm       = 26.1231
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.89787
  Prefactor  = 11.9643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9486
  norm       = 0.0001
  Prefactor  = 68.244
  Normalizat = 1.16189
  Prefactor  = 0.945267
 **********
 **   18 **HESSE 
 **********

 FCN=   10948.15     FROM HESSE     STATUS=OK           511 CALLS     3997 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.826        25.446        .78826E-04   -1.4691    
   2  norm          15.507        19.622        .10171E-03   -1.4920    
   3  Prefactor     .10000E-03    1.9367        .14185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5064        .16090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0630        .10504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4448        265.47        .25740E-03   -1.5395    
   7  Prefactor     .10000E-03    11.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.555        15.109        .95595E-04   -1.4870    
  12  Prefactor     .10000E-03    9.3294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4149        .32414        .17348E-04   -1.5338    
  15  norm          6.1619        2.4865        .98718E-04   -1.5211    
  16  norm          .10000E-03    2.1313        .14887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          26.123        36.468        .78379E-04   -1.4685    
  18  norm          .10000E-03    2.1464        .29254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.8979        26.480        .14265E-03   -1.5146    
  21  Prefactor     11.964        27.639        .11580E-03   -1.5016    
  22  Prefactor     .10000E-03    1.8473        .13805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.949        21.776        .11589E-03   -1.5016    
  25  norm          .10000E-03    2.3091        .18335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     68.244        68.114        .48585E-04   -1.4054    
  27  Normalizat    1.1619        .24432        .34179E-03   -.87789    
  28  Prefactor     .94527        .13621        .21637E-03   -.94577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08227e-09
Minuit parameter uncertainties:
  1  25.4564
  2  19.6298
  3  1.1606e-05
  4  2.78044e-05
  5  9.83112e-06
  6  51.1856
  7  9.41051e-05
  8  4.39509e-05
  9  4.18916e-05
  10  0.000550962
  11  15.1118
  12  3.94872e-05
  13  5.29025e-05
  14  0.324145
  15  2.48658
  16  2.68653e-06
  17  36.4986
  18  2.87888e-05
  19  5.24414e-05
  20  26.5189
  21  27.6689
  22  1.59462e-05
  23  7.40241e-05
  24  21.79
  25  8.44895e-06
  26  68.192
  27  0.244557
  28  0.13626
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.415e+00  3.241e-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.453e-01  1.363e-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.162e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 434.98
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 8.31e-07 +/- 7.89e-08
Energy Flux (Fixed Index): 3.37e-04 +/- 3.20e-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) = 10948.1163392
delta logL = 0.0375693581882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10948.1140106
delta logL = 0.0398980172158

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4272        .34453        .39479E-02   -.18471E-03
   2  alpha         2.0967        .10192        .87794E-01    .10889E-04
   3  Normalizat    1.1758        .19468        .76866E-01    .12091E-04
   4  Prefactor     .94007        .11090        .45514E-01   -.63809E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.42717
  alpha      = 2.09673
  Normalizat = 1.17577
  Prefactor  = 0.94007
 **********
 **   18 **HESSE 
 **********

 FCN=   10948.11     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4272        .32773        .17445E-04   -1.5338    
   2  alpha         2.0967        .97742E-01    .38606E-03   -.16202    
   3  Normalizat    1.1758        .23726        .34022E-03   -.87355    
   4  Prefactor     .94007        .13477        .21694E-03   -.94755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62185e-13
Minuit parameter uncertainties:
  1  0.327732
  2  0.0977677
  3  0.237476
  4  0.134819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994722': 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) = 10948.1140103
delta logL = 0.0398982602183

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.427e+00  3.277e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.097e+00  9.777e-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:  9.401e-01  1.348e-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.176e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 432.90
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.10 +/- 0.10
Photon Flux (Free Index): 8.18e-07 +/- 9.10e-08
Energy Flux (Free Index): 3.43e-04 +/- 4.08e-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/994722/cmap_HighResolution_263952001_264211201_4FGL_J1504.4+1029_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.31e-07', energy_flux2='3.43e-04', photon_flux_error='7.89e-08', dlogl='3.99e-02', energy_flux='3.37e-04', photon_flux2='8.18e-07', job_status='DONE', time_completed='2021-09-10 21:22:27.319245', photon_index_error2='0.10', photon_index2='2.10', ts='434.98', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='4.08e-05', EG='1.16', time_epoch_completed='1631334147.32', return_code='0', job_id='994722', GAL2='0.94', EG2='1.18', return_code2='0', energy_flux_error='3.20e-05', photon_flux_error2='9.10e-08', ts2='432.90', photon_index='2.12' WHERE bin_id='95' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:22:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 994722: <4FGL_J1504.4+1029_daily_bin95> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin95> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:06:02 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:06:04 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:04 2021
Terminated at Fri Sep 10 21:22:28 2021
Results reported at Fri Sep 10 21:22:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin95 226.103 10.4978 263952001 264211201 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 :                                   847.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            986 sec.

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

