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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1060
RA = 226.103, Dec = 10.4978
tmin = 514080001, tmax = 514339201
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='5625', job_status='RUN', time_executed='2021-09-10 21:43:10.989243', time_epoch_executed='1631335390.99' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5625/ft1_4FGL_J1504.4+1029_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5625/ft2_4FGL_J1504.4+1029_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5625/ft1_4FGL_J1504.4+1029_daily_bin1060.fits outfile=/scratch/kocevski/5625/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1060.fits ra=226.103 dec=10.4978 rad=12.0 tmin=514080001.0 tmax=514339201.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.60
user 3.37
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5625/ft1_filtered_4FGL_J1504.4+1029_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/5625/ft2_4FGL_J1504.4+1029_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/5625/ltcube_514080001_514339201_4FGL_J1504.4+1029_daily_bin1060.fits outfile=/scratch/kocevski/5625/expmap_514080001_514339201_4FGL_J1504.4+1029_daily_bin1060.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/5625/ltcube_514080001_514339201_4FGL_J1504.4+1029_daily_bin1060.fits
.....................!
real 192.66
user 186.89
sys 5.40

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.339       1.0000         .10000E-03   10000.    
     2 'norm      '    36.091       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53497E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5843       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.599       1.0000         .10000E-03   10000.    
     8 'norm      '    .10844E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97776E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5035       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.121       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0539       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4581       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3901       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0960       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.961       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2848       1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.336       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.627       1.0000         .10000E-03   10000.    
    25 'norm      '    2.7772       1.0000         .10000E-03   10000.    
    26 'Prefactor '    68.214       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2794       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82598       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=   7520.507     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3575 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.351        46.977        .28755E-05    .11950E-03
   2  norm          36.067        45.362       -.62611E-05   -.30184E-03
   3  Prefactor     12.746        8.4419        .55915E-06    .24658E-03
   4  Prefactor     .10003E-03    4.9551        .59113E-06** at limit **
   5  norm          4.5849        3.2789       -.32281E-07   -.66187E-04
   6  Prefactor     .10000E-03    38.817       -.31389E-05** at limit **
   7  Prefactor     18.612        23.521       -.11752E-05   -.15860E-03
   8  norm          .10000E-03    17.902        .52160E-06** at limit **
   9  Prefactor     .10011E-03    15.560       -.20047E-06** at limit **
  10  Prefactor     .10000E-03    61.020        .30141E-07** at limit **
  11  Prefactor     11.566        15.517       -.62495E-06   -.75690E-04
  12  Prefactor     5.5110        29.169        .59437E-05    .16099E-03
  13  Prefactor     10.099        33.540       -.31098E-05   -.81489E-04
  14  norm          1.0540        .25392        .24753E-08   -.43049E-03
  15  norm          1.4562        2.8852        .38809E-06   -.33584E-03
  16  norm          1.3900        3.5492        .35858E-06   -.18555E-03
  17  norm          .10000E-03    15.526        .47702E-07** at limit **
  18  norm          7.0966        4.3374       -.71489E-07   -.55918E-04
  19  Prefactor     .10000E-03    18.430       -.78798E-06** at limit **
  20  Prefactor     .10000E-03    37.381        .26627E-05** at limit **
  21  Prefactor     36.958        36.880       -.91495E-06   -.12062E-03
  22  Prefactor     5.2834        4.9382        .22579E-05   -.19346E-02
  23  Prefactor     37.333        47.471       -.91295E-06   -.72703E-04
  24  Prefactor     12.625        19.307        .42586E-07    .76331E-05
  25  norm          2.7771        2.1983        .25737E-07    .34261E-04
  26  Prefactor     68.207        72.370       -.19911E-05   -.87581E-04
  27  Normalizat    1.2792        .23719       -.76268E-06   -.73880E-04
  28  Prefactor     .82621        .12896       -.10339E-06   -.13437E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.3505
  norm       = 36.0668
  Prefactor  = 12.7458
  Prefactor  = 0.000100033
  norm       = 4.5849
  Prefactor  = 0.000100002
  Prefactor  = 18.6119
  norm       = 0.0001
  Prefactor  = 0.000100113
  Prefactor  = 0.0001
  Prefactor  = 11.5659
  Prefactor  = 5.51097
  Prefactor  = 10.0992
  norm       = 1.05397
  norm       = 1.45615
  norm       = 1.39001
  norm       = 0.0001
  norm       = 7.09658
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 36.9577
  Prefactor  = 5.28342
  Prefactor  = 37.3335
  Prefactor  = 12.6247
  norm       = 2.77706
  Prefactor  = 68.2071
  Normalizat = 1.27919
  Prefactor  = 0.826206
 **********
 **   18 **HESSE 
 **********

 FCN=   7520.507     FROM HESSE     STATUS=OK           533 CALLS     4108 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.351        47.550        .45958E-04   -1.3958    
   2  norm          36.067        47.173        .66709E-04   -1.4506    
   3  Prefactor     12.746        8.3536        .11222E-03   -1.4994    
   4  Prefactor     .10003E-03    27.485        .36428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5849        3.2715        .12853E-03   -1.5280    
   6  Prefactor     .10000E-03    39.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.612        23.595        .92870E-04   -1.4845    
   8  norm          .10000E-03    17.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10011E-03    17.756        .11011       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    61.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.566        15.540        .11781E-03   -1.5028    
  12  Prefactor     5.5110        30.067        .17127E-03   -1.5238    
  13  Prefactor     10.099        33.759        .12595E-03   -1.5072    
  14  norm          1.0540        .25442        .20283E-04   -1.5503    
  15  norm          1.4562        2.8665        .18794E-03   -1.5467    
  16  norm          1.3900        3.4981        .25496E-03   -1.5472    
  17  norm          .10000E-03    15.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.0966        4.3281        .13424E-03   -1.5175    
  19  Prefactor     .10000E-03    18.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.958        37.188        .65922E-04   -1.4491    
  22  Prefactor     5.2834        5.6975        .87419E-03   -1.5248    
  23  Prefactor     37.333        47.584        .65591E-04   -1.4485    
  24  Prefactor     12.625        19.319        .11273E-03   -1.4997    
  25  norm          2.7771        2.1978        .11121E-03   -1.5375    
  26  Prefactor     68.207        72.655        .48598E-04   -1.4054    
  27  Normalizat    1.2792        .28683        .31378E-03   -.84190    
  28  Prefactor     .82621        .15649        .21753E-03   -.98769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19036e-09
Minuit parameter uncertainties:
  1  47.5741
  2  47.2217
  3  8.35441
  4  0.0019064
  5  3.27161
  6  0.000592977
  7  23.6065
  8  0.000169217
  9  0.00283809
  10  3.22462e-05
  11  15.5453
  12  25.7644
  13  33.823
  14  0.254418
  15  2.86676
  16  3.49865
  17  5.4266e-06
  18  4.32832
  19  0.000102213
  20  0.000501043
  21  37.2114
  22  5.69805
  23  47.632
  24  19.3281
  25  2.19788
  26  72.7495
  27  0.287185
  28  0.15657
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.054e+00  2.544e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  8.262e-01  1.566e-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.279e+00  2.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 61.40
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.57e-07 +/- 6.19e-08
Energy Flux (Fixed Index): 1.04e-04 +/- 2.51e-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) = 7520.4942643
delta logL = 0.0125227171593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7520.49285884
delta logL = 0.0139281759357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0458       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0818       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82220       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=   7520.493     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      198 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0460        .26582        .46177E-02    .12217E-03
   2  alpha         2.0818        .25126        .18730       -.11817E-04
   3  Normalizat    1.2909        .22625        .70657E-01    .12109E-04
   4  Prefactor     .82222        .12736        .44005E-01    .13365E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04597
  alpha      = 2.08181
  Normalizat = 1.29089
  Prefactor  = 0.822218
 **********
 **   18 **HESSE 
 **********

 FCN=   7520.493     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0460        .25898        .20416E-04   -1.5503    
   2  alpha         2.0818        .25418        .79797E-02   -.16807    
   3  Normalizat    1.2909        .27680        .31264E-03   -.83839    
   4  Prefactor     .82222        .15432        .21803E-03   -.98914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39033e-11
Minuit parameter uncertainties:
  1  0.258982
  2  0.254631
  3  0.277116
  4  0.154406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5625': 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) = 7520.49285853
delta logL = 0.0139284888683

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.046e+00  2.590e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.082e+00  2.546e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  8.222e-01  1.544e-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.291e+00  2.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 61.05
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.08 +/- 0.25
Photon Flux (Free Index): 2.47e-07 +/- 8.21e-08
Energy Flux (Free Index): 1.06e-04 +/- 2.84e-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/5625/cmap_HighResolution_514080001_514339201_4FGL_J1504.4+1029_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.57e-07', energy_flux2='1.06e-04', photon_flux_error='6.19e-08', dlogl='1.39e-02', energy_flux='1.04e-04', photon_flux2='2.47e-07', job_status='DONE', time_completed='2021-09-10 21:55:19.049748', photon_index_error2='0.25', photon_index2='2.08', ts='61.40', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.84e-05', EG='1.28', time_epoch_completed='1631336119.05', return_code='0', job_id='5625', GAL2='0.82', EG2='1.29', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='8.21e-08', ts2='61.05', photon_index='2.12' WHERE bin_id='1060' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:55:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 5625: <4FGL_J1504.4+1029_daily_bin1060> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1060> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:40:57 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:40:58 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:40:58 2021
Terminated at Fri Sep 10 21:55:19 2021
Results reported at Fri Sep 10 21:55:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1060 226.103 10.4978 514080001 514339201 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 :                                   676.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            862 sec.

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

