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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1124
RA = 226.103, Dec = 10.4978
tmin = 530668801, tmax = 530928001
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='5757', job_status='RUN', time_executed='2021-09-10 21:43:19.312035', time_epoch_executed='1631335399.31' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5757

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5757/ft1_4FGL_J1504.4+1029_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5757/ft2_4FGL_J1504.4+1029_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5757/ft1_4FGL_J1504.4+1029_daily_bin1124.fits outfile=/scratch/kocevski/5757/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1124.fits ra=226.103 dec=10.4978 rad=12.0 tmin=530668801.0 tmax=530928001.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.62
user 3.38
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5757/ft1_filtered_4FGL_J1504.4+1029_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/5757/ft2_4FGL_J1504.4+1029_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/5757/ltcube_530668801_530928001_4FGL_J1504.4+1029_daily_bin1124.fits outfile=/scratch/kocevski/5757/expmap_530668801_530928001_4FGL_J1504.4+1029_daily_bin1124.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/5757/ltcube_530668801_530928001_4FGL_J1504.4+1029_daily_bin1124.fits
.....................!
real 193.30
user 187.89
sys 4.80

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/5757/ft1_filtered_4FGL_J1504.4+1029_daily_bin1124.fits scfile=/scratch/kocevski/5757/ft2_4FGL_J1504.4+1029_daily_bin1124.fits outfile=/scratch/kocevski/5757/cmap_530668801_530928001_4FGL_J1504.4+1029_daily_bin1124.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/5757/ft1_filtered_4FGL_J1504.4+1029_daily_bin1124.fits scfile=/scratch/kocevski/5757/ft2_4FGL_J1504.4+1029_daily_bin1124.fits outfile=/scratch/kocevski/5757/cmap_HighResolution_530668801_530928001_4FGL_J1504.4+1029_daily_bin1124.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.678       1.0000         .10000E-03   10000.    
     5 'norm      '    5.3816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.857       1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.675       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3893       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6777       1.0000         .10000E-03   10000.    
    15 'norm      '    .16414E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.8418       1.0000         .10000E-03   10000.    
    19 'Prefactor '    87.891       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.349       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0170       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.6610       1.0000         .10000E-03   10000.    
    26 'Prefactor '    95.160       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .73351       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2100       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=   8384.987     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3561 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.469        .32656E-05** at limit **
   2  norm          16.288        23.100       -.25655E-05   -.73233E-05
   3  Prefactor     .10000E-03    6.5903       -.26797E-07** at limit **
   4  Prefactor     13.678        7.9231       -.12737E-05   -.68673E-03
   5  norm          5.3815        3.9887       -.13595E-06   -.16976E-03
   6  Prefactor     .10000E-03    46.130        .10052E-05** at limit **
   7  Prefactor     21.861        21.222        .78436E-06    .10341E-04
   8  norm          .10000E-03    10.230        .36876E-05** at limit **
   9  Prefactor     8.1239        27.654        .36432E-05    .19411E-04
  10  Prefactor     30.677        26.564       -.20622E-06    .57059E-04
  11  Prefactor     6.3826        18.310       -.75638E-05   -.26574E-04
  12  Prefactor     .10000E-03    9.2280       -.44717E-05** at limit **
  13  Prefactor     .10000E-03    10.875        .31611E-05** at limit **
  14  norm          1.6778        .28022       -.67093E-07    .26831E-02
  15  norm          .10009E-03    .85516       -.12827E-05** at limit **
  16  norm          .10000E-03    1.7674        .27145E-07** at limit **
  17  norm          .10000E-03    15.837       -.94401E-05** at limit **
  18  norm          6.8436        4.2544       -.76417E-06    .46420E-03
  19  Prefactor     87.819        56.671       -.65543E-04    .22527E-04
  20  Prefactor     28.346        31.264       -.45013E-05    .65416E-04
  21  Prefactor     2.0068        56.194       -.14591E-04   -.20434E-04
  22  Prefactor     .10000E-03    2.8077       -.16422E-06** at limit **
  23  Prefactor     .10000E-03    18.108        .10306E-04** at limit **
  24  Prefactor     .10000E-03    9.6308        .55106E-06** at limit **
  25  norm          1.6606        1.8010       -.82365E-07    .12133E-03
  26  Prefactor     95.139        93.887       -.20886E-04    .42075E-05
  27  Normalizat    .73324        .24436        .16839E-04    .26614E-03
  28  Prefactor     1.2102        .13676        .44596E-07    .86517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.288
  Prefactor  = 0.0001
  Prefactor  = 13.6777
  norm       = 5.38151
  Prefactor  = 0.0001
  Prefactor  = 21.861
  norm       = 0.0001
  Prefactor  = 8.12386
  Prefactor  = 30.6772
  Prefactor  = 6.38255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.67777
  norm       = 0.000100094
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.84361
  Prefactor  = 87.8193
  Prefactor  = 28.3456
  Prefactor  = 2.00677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66062
  Prefactor  = 95.1388
  Normalizat = 0.733238
  Prefactor  = 1.21022
 **********
 **   18 **HESSE 
 **********

 FCN=   8384.987     FROM HESSE     STATUS=OK           519 CALLS     4080 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.288        23.096        .99236E-04   -1.4901    
   3  Prefactor     .10000E-03    6.6975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.678        7.9254        .54151E-03   -1.4968    
   5  norm          5.3815        3.9819        .15138E-03   -1.5244    
   6  Prefactor     .10000E-03    46.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.861        21.218        .85674E-04   -1.4773    
   8  norm          .10000E-03    10.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1239        27.564        .14069E-03   -1.5138    
  10  Prefactor     30.677        26.561        .72342E-04   -1.4600    
  11  Prefactor     6.3826        18.268        .15879E-03   -1.5203    
  12  Prefactor     .10000E-03    9.2315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6778        .28038        .18748E-04   -1.5449    
  15  norm          .10009E-03    15.881        .15969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7678        .11889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8436        4.2149        .14167E-03   -1.5185    
  19  Prefactor     87.819        56.661        .21428E-03   -1.3831    
  20  Prefactor     28.346        31.279        .75245E-04   -1.4643    
  21  Prefactor     2.0068        56.320        .29144E-03   -1.5425    
  22  Prefactor     .10000E-03    2.8960        .29959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.6369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6606        1.8043        .12471E-03   -1.5450    
  26  Prefactor     95.139        93.906        .41202E-04   -1.3754    
  27  Normalizat    .73324        .27216        .41590E-03   -1.0260    
  28  Prefactor     1.2102        .15515        .19527E-03   -.86017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29468e-09
Minuit parameter uncertainties:
  1  0.000104945
  2  23.1088
  3  6.5886e-05
  4  7.92604
  5  3.98213
  6  0.000285392
  7  21.2255
  8  9.08747e-05
  9  27.6069
  10  26.5715
  11  18.2836
  12  1.73777e-05
  13  1.85798e-05
  14  0.280377
  15  0.00244228
  16  2.69685e-06
  17  1.11088e-05
  18  4.21511
  19  56.6957
  20  31.2972
  21  21.2839
  22  3.09412e-05
  23  5.48358e-05
  24  2.07185e-05
  25  1.80433
  26  94.0535
  27  0.272665
  28  0.15521
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.678e+00  2.804e-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.210e+00  1.552e-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:  7.332e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 131.40
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.08e-07 +/- 6.82e-08
Energy Flux (Fixed Index): 1.65e-04 +/- 2.76e-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) = 8383.18682834
delta logL = 1.80030497038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8383.18634029
delta logL = 1.80079302163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6136       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8083       1.0000          .0000       5.0000    
     3 'Normalizat'    .82718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8383.186     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      202 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6136        .29144        .97653E-08   -.15166E-03
   2  alpha         1.8083        .14355        .13752E-06    .18830E-04
   3  Normalizat    .82718        .19604       -.36585E-06   -.29423E-04
   4  Prefactor     1.1764        .12258        .15887E-06   -.14449E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61364
  alpha      = 1.80835
  Normalizat = 0.827183
  Prefactor  = 1.17643
 **********
 **   18 **HESSE 
 **********

 FCN=   8383.186     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6136        .29282        .19176E-04   -1.5454    
   2  alpha         1.8083        .16301        .55801E-03   -.28032    
   3  Normalizat    .82718        .26236        .39430E-03   -.99068    
   4  Prefactor     1.1764        .15311        .19782E-03   -.87060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34414e-12
Minuit parameter uncertainties:
  1  0.292817
  2  0.163132
  3  0.262762
  4  0.153165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5757': 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) = 8383.18634029
delta logL = 1.80079302163

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.614e+00  2.928e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.808e+00  1.631e-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:  1.176e+00  1.532e-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:  8.272e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 134.53
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.81 +/- 0.16
Photon Flux (Free Index): 3.24e-07 +/- 7.10e-08
Energy Flux (Free Index): 2.14e-04 +/- 5.06e-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/5757/cmap_HighResolution_530668801_530928001_4FGL_J1504.4+1029_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.08e-07', energy_flux2='2.14e-04', photon_flux_error='6.82e-08', dlogl='1.80e+00', energy_flux='1.65e-04', photon_flux2='3.24e-07', job_status='DONE', time_completed='2021-09-10 21:56:15.545552', photon_index_error2='0.16', photon_index2='1.81', ts='131.40', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='5.06e-05', EG='0.73', time_epoch_completed='1631336175.55', return_code='0', job_id='5757', GAL2='1.18', EG2='0.83', return_code2='0', energy_flux_error='2.76e-05', photon_flux_error2='7.10e-08', ts2='134.53', photon_index='2.12' WHERE bin_id='1124' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:56:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 5757: <4FGL_J1504.4+1029_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1124 226.103 10.4978 530668801 530928001 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 :                                   721.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            914 sec.

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

