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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1433
RA = 226.103, Dec = 10.4978
tmin = 610761601, tmax = 611020801
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='7952', job_status='RUN', time_executed='2021-09-10 21:46:39.014074', time_epoch_executed='1631335599.01' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7952

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7952/ft1_4FGL_J1504.4+1029_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7952/ft2_4FGL_J1504.4+1029_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7952/ft1_4FGL_J1504.4+1029_daily_bin1433.fits outfile=/scratch/kocevski/7952/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1433.fits ra=226.103 dec=10.4978 rad=12.0 tmin=610761601.0 tmax=611020801.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.55
user 3.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7952/ft1_filtered_4FGL_J1504.4+1029_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/7952/ft2_4FGL_J1504.4+1029_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/7952/ltcube_610761601_611020801_4FGL_J1504.4+1029_daily_bin1433.fits outfile=/scratch/kocevski/7952/expmap_610761601_611020801_4FGL_J1504.4+1029_daily_bin1433.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/7952/ltcube_610761601_611020801_4FGL_J1504.4+1029_daily_bin1433.fits
.....................!
real 189.93
user 185.09
sys 4.46

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/7952/ft1_filtered_4FGL_J1504.4+1029_daily_bin1433.fits scfile=/scratch/kocevski/7952/ft2_4FGL_J1504.4+1029_daily_bin1433.fits outfile=/scratch/kocevski/7952/cmap_610761601_611020801_4FGL_J1504.4+1029_daily_bin1433.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7952/ft1_filtered_4FGL_J1504.4+1029_daily_bin1433.fits scfile=/scratch/kocevski/7952/ft2_4FGL_J1504.4+1029_daily_bin1433.fits outfile=/scratch/kocevski/7952/cmap_HighResolution_610761601_611020801_4FGL_J1504.4+1029_daily_bin1433.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/7952/ft1_filtered_4FGL_J1504.4+1029_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/7952/ft2_4FGL_J1504.4+1029_daily_bin1433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7952/Model_4FGL_J1504.4+1029_daily_bin1433.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/7952/ft1_filtered_4FGL_J1504.4+1029_daily_bin1433.fits.....................!
real 53.33
user 52.04
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.349       1.0000         .10000E-03   10000.    
     2 'norm      '    28.674       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11587E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15976E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3229       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2385       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4413       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5939       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3047       1.0000         .10000E-03   10000.    
    17 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6523       1.0000         .10000E-03   10000.    
    19 'Prefactor '    78.601       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4505       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7560       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2266       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7235       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91160       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1600       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=   7319.262     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3583 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.348        34.300       -.13744E-06   -.33686E-04
   2  norm          28.683        24.194       -.42789E-08   -.14852E-04
   3  Prefactor     10.130        8.0836        .43561E-07    .76926E-04
   4  Prefactor     .10000E-03    4.3406        .11010E-06** at limit **
   5  norm          .10000E-03    1.6113        .10131E-06** at limit **
   6  Prefactor     .10001E-03    76.946        .16423E-05** at limit **
   7  Prefactor     .10000E-03    67.980        .22286E-07** at limit **
   8  norm          21.955        17.538       -.10137E-07    .11592E-04
   9  Prefactor     6.2875        35.162       -.17405E-05   -.45852E-04
  10  Prefactor     7.2361        22.497        .78388E-07   -.11635E-04
  11  Prefactor     .10000E-03    6.7867       -.72891E-07** at limit **
  12  Prefactor     .10000E-03    40.310       -.21040E-05** at limit **
  13  Prefactor     .10000E-03    14.806       -.25760E-06** at limit **
  14  norm          1.4412        .26677       -.68247E-08   -.13067E-03
  15  norm          1.5942        1.8500        .14166E-06   -.63304E-04
  16  norm          1.3054        4.5230        .15296E-05   -.38554E-04
  17  norm          .10000E-03    38.246       -.25044E-06** at limit **
  18  norm          4.6523        3.2396       -.21385E-07   -.15936E-04
  19  Prefactor     78.592        55.225       -.32235E-06   -.94553E-04
  20  Prefactor     .10000E-03    35.839        .14123E-05** at limit **
  21  Prefactor     8.4480        29.185       -.18589E-06   -.20898E-04
  22  Prefactor     8.7568        6.9352        .31685E-06    .31019E-03
  23  Prefactor     5.2170        88.011       -.22638E-05   -.35108E-04
  24  Prefactor     .10000E-03    14.603        .31387E-06** at limit **
  25  norm          4.7239        3.2821        .12766E-05   -.40746E-03
  26  Prefactor     .10000E-03    137.10       -.11803E-05** at limit **
  27  Normalizat    .91198        .25909        .10658E-05   -.58070E-04
  28  Prefactor     1.1597        .14315       -.86191E-06    .46040E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3483
  norm       = 28.6833
  Prefactor  = 10.1304
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 21.9555
  Prefactor  = 6.28755
  Prefactor  = 7.23608
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.44123
  norm       = 1.5942
  norm       = 1.30536
  norm       = 0.0001
  norm       = 4.65228
  Prefactor  = 78.5917
  Prefactor  = 0.000100003
  Prefactor  = 8.44796
  Prefactor  = 8.75678
  Prefactor  = 5.21697
  Prefactor  = 0.0001
  norm       = 4.7239
  Prefactor  = 0.000100004
  Normalizat = 0.911984
  Prefactor  = 1.15972
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.262     FROM HESSE     STATUS=OK           523 CALLS     4106 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.348        34.397        .75245E-04   -1.4643    
   2  norm          28.683        24.193        .74817E-04   -1.4636    
   3  Prefactor     10.130        7.9795        .12586E-03   -1.5071    
   4  Prefactor     .10000E-03    18.952        .33591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.8321        .20913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    77.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    68.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.955        17.490        .85527E-04   -1.4770    
   9  Prefactor     6.2875        35.212        .15963E-03   -1.5206    
  10  Prefactor     7.2361        22.525        .14909E-03   -1.5170    
  11  Prefactor     .10000E-03    6.7997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4412        .26696        .18100E-04   -1.5468    
  15  norm          1.5942        1.8303        .12004E-03   -1.5455    
  16  norm          1.3054        4.4796        .33091E-03   -1.5479    
  17  norm          .10000E-03    38.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6523        3.2405        .12469E-03   -1.5277    
  19  Prefactor     78.592        55.355        .45297E-04   -1.3933    
  20  Prefactor     .10000E-03    36.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4480        29.163        .13790E-03   -1.5127    
  22  Prefactor     8.7568        6.9392        .13546E-03   -1.5116    
  23  Prefactor     5.2170        88.070        .17583E-03   -1.5251    
  24  Prefactor     .10000E-03    14.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7239        3.2929        .62715E-03   -1.5273    
  26  Prefactor     .10000E-03    137.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91198        .30048        .36307E-03   -.96040    
  28  Prefactor     1.1597        .16684        .19824E-03   -.87580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12611e-10
Minuit parameter uncertainties:
  1  34.4209
  2  24.2009
  3  7.98037
  4  2.67447e-05
  5  1.50676e-05
  6  0.00126474
  7  0.000148674
  8  17.4942
  9  29.7853
  10  22.5513
  11  2.38115e-07
  12  0.000733843
  13  8.11038e-05
  14  0.266957
  15  1.83033
  16  4.48071
  17  0.000146644
  18  3.24059
  19  55.3909
  20  0.000704501
  21  29.2119
  22  6.93979
  23  42.9441
  24  9.28443e-05
  25  3.29305
  26  0.00148803
  27  0.301034
  28  0.166916
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.441e+00  2.670e-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.160e+00  1.669e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  9.120e-01  3.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 101.16
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.51e-07 +/- 6.50e-08
Energy Flux (Fixed Index): 1.42e-04 +/- 2.63e-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) = 7317.95463198
delta logL = 1.30727173109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7317.95096949
delta logL = 1.31093422829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4441       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8427       1.0000          .0000       5.0000    
     3 'Normalizat'    .97346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1375       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=   7317.951     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4440        .27294        .42235E-02   -.72788E-04
   2  alpha         1.8428        .16521        .12953       -.19191E-04
   3  Normalizat    .97346        .22947        .79745E-01    .23336E-04
   4  Prefactor     1.1376        .13892        .36308E-01    .98240E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44404
  alpha      = 1.84275
  Normalizat = 0.973456
  Prefactor  = 1.13756
 **********
 **   18 **HESSE 
 **********

 FCN=   7317.951     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .64E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4440        .27658        .18662E-04   -1.5468    
   2  alpha         1.8428        .16976        .56476E-03   -.26603    
   3  Normalizat    .97346        .26863        .35297E-03   -.93925    
   4  Prefactor     1.1376        .16276        .19997E-03   -.88275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44597e-15
Minuit parameter uncertainties:
  1  0.276583
  2  0.169905
  3  0.268998
  4  0.162827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7952': 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) = 7317.95096947
delta logL = 1.31093424298

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.444e+00  2.766e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.843e+00  1.699e-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.138e+00  1.628e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  9.735e-01  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 103.35
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.84 +/- 0.17
Photon Flux (Free Index): 2.95e-07 +/- 6.59e-08
Energy Flux (Free Index): 1.83e-04 +/- 4.78e-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/7952/cmap_HighResolution_610761601_611020801_4FGL_J1504.4+1029_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.51e-07', energy_flux2='1.83e-04', photon_flux_error='6.50e-08', dlogl='1.31e+00', energy_flux='1.42e-04', photon_flux2='2.95e-07', job_status='DONE', time_completed='2021-09-10 21:58:00.278140', photon_index_error2='0.17', photon_index2='1.84', ts='101.16', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='4.78e-05', EG='0.91', time_epoch_completed='1631336280.28', return_code='0', job_id='7952', GAL2='1.14', EG2='0.97', return_code2='0', energy_flux_error='2.63e-05', photon_flux_error2='6.59e-08', ts2='103.35', photon_index='2.12' WHERE bin_id='1433' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:58:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 7952: <4FGL_J1504.4+1029_daily_bin1433> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1433> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:21 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46:22 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:46:22 2021
Terminated at Fri Sep 10 21:58:00 2021
Results reported at Fri Sep 10 21:58:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1433 226.103 10.4978 610761601 611020801 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 :                                   677.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            699 sec.

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

