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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1166
RA = 226.103, Dec = 10.4978
tmin = 541555201, tmax = 541814401
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='5821', job_status='RUN', time_executed='2021-09-10 21:41:26.057600', time_epoch_executed='1631335286.06' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5821/ft1_4FGL_J1504.4+1029_daily_bin1166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5821/ft2_4FGL_J1504.4+1029_daily_bin1166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5821/ft1_4FGL_J1504.4+1029_daily_bin1166.fits outfile=/scratch/kocevski/5821/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1166.fits ra=226.103 dec=10.4978 rad=12.0 tmin=541555201.0 tmax=541814401.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.76
user 3.40
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5821/ft1_filtered_4FGL_J1504.4+1029_daily_bin1166.fits" evtable="EVENTS" scfile=/scratch/kocevski/5821/ft2_4FGL_J1504.4+1029_daily_bin1166.fits sctable="SC_DATA" outfile=/scratch/kocevski/5821/ltcube_541555201_541814401_4FGL_J1504.4+1029_daily_bin1166.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/5821/ft2_4FGL_J1504.4+1029_daily_bin1166.fits
.....................!
real 11.87
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5821/ft1_filtered_4FGL_J1504.4+1029_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/5821/ft2_4FGL_J1504.4+1029_daily_bin1166.fits sctable="SC_DATA" expcube=/scratch/kocevski/5821/ltcube_541555201_541814401_4FGL_J1504.4+1029_daily_bin1166.fits outfile=/scratch/kocevski/5821/expmap_541555201_541814401_4FGL_J1504.4+1029_daily_bin1166.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/5821/ltcube_541555201_541814401_4FGL_J1504.4+1029_daily_bin1166.fits
.....................!
real 189.99
user 184.79
sys 4.81

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/5821/ft1_filtered_4FGL_J1504.4+1029_daily_bin1166.fits scfile=/scratch/kocevski/5821/ft2_4FGL_J1504.4+1029_daily_bin1166.fits outfile=/scratch/kocevski/5821/cmap_541555201_541814401_4FGL_J1504.4+1029_daily_bin1166.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/5821/ft1_filtered_4FGL_J1504.4+1029_daily_bin1166.fits scfile=/scratch/kocevski/5821/ft2_4FGL_J1504.4+1029_daily_bin1166.fits outfile=/scratch/kocevski/5821/cmap_HighResolution_541555201_541814401_4FGL_J1504.4+1029_daily_bin1166.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.326       1.0000         .10000E-03   10000.    
     2 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17472       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5374       1.0000         .10000E-03   10000.    
     5 'norm      '    5.3786       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.988       1.0000         .10000E-03   10000.    
     8 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5406       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.465       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.365       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .62217       1.0000         .10000E-03   10000.    
    15 'norm      '    .36072       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.6651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26395E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .80428       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.383       1.0000         .10000E-03   10000.    
    25 'norm      '    5.9711       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.734       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99404       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0624       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=   8307.116     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3569 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.318        40.494       -.35789E-05   -.24742E-04
   2  norm          .10000E-03    10.988        .16576E-05** at limit **
   3  Prefactor     .17835        4.5531       -.52233E-07   -.46186E-04
   4  Prefactor     1.5383        1.2519        .11926E-06   -.10023E-02
   5  norm          5.3775        3.6037       -.12472E-06   -.23267E-04
   6  Prefactor     .10000E-03    27.126        .15222E-05** at limit **
   7  Prefactor     16.979        24.713        .14471E-05   -.14625E-03
   8  norm          .10000E-03    13.003        .10216E-04** at limit **
   9  Prefactor     6.5304        24.675        .41642E-05    .53932E-05
  10  Prefactor     .10000E-03    5.9864        .90386E-08** at limit **
  11  Prefactor     16.460        16.193       -.54163E-06    .14079E-05
  12  Prefactor     18.359        30.902       -.52292E-06    .16649E-05
  13  Prefactor     .10000E-03    15.085       -.31849E-05** at limit **
  14  norm          .62211        .19979       -.78201E-09   -.16084E-03
  15  norm          .35887        1.4369       -.15346E-06   -.18398E-03
  16  norm          .10000E-03    1.9865       -.23261E-07** at limit **
  17  norm          .10000E-03    12.239       -.92675E-05** at limit **
  18  norm          9.6684        4.3972       -.33970E-07   -.17420E-03
  19  Prefactor     .10000E-03    60.428        .30929E-05** at limit **
  20  Prefactor     .10001E-03    260.47        .40779E-04** at limit **
  21  Prefactor     .10000E-03    44.215       -.36802E-05** at limit **
  22  Prefactor     .10000E-03    2.9488        .29619E-07** at limit **
  23  Prefactor     .64819        33.939       -.18764E-05    .11857E-03
  24  Prefactor     10.381        29.114       -.39292E-05   -.92964E-05
  25  norm          5.9714        3.1379        .78624E-08    .99797E-04
  26  Prefactor     19.730        40.018       -.19641E-05   -.23541E-07
  27  Normalizat    .99431        .21643        .28846E-06   -.92722E-04
  28  Prefactor     1.0625        .12251        .13587E-06   -.18441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.3179
  norm       = 0.0001
  Prefactor  = 0.178354
  Prefactor  = 1.53834
  norm       = 5.37751
  Prefactor  = 0.0001
  Prefactor  = 16.9789
  norm       = 0.0001
  Prefactor  = 6.53043
  Prefactor  = 0.0001
  Prefactor  = 16.46
  Prefactor  = 18.3593
  Prefactor  = 0.0001
  norm       = 0.622115
  norm       = 0.358869
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.66843
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.648189
  Prefactor  = 10.3814
  norm       = 5.97145
  Prefactor  = 19.7298
  Normalizat = 0.994307
  Prefactor  = 1.06245
 **********
 **   18 **HESSE 
 **********

 FCN=   8307.116     FROM HESSE     STATUS=OK           531 CALLS     4100 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.318        40.614        .44538E-04   -1.3902    
   2  norm          .10000E-03    11.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17835        45.267        .36965E-02   -1.5624    
   4  Prefactor     1.5383        9.5802        .17199E-02   -1.5460    
   5  norm          5.3775        3.6187        .13655E-03   -1.5244    
   6  Prefactor     .10000E-03    27.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.979        24.624        .97172E-04   -1.4884    
   8  norm          .10000E-03    12.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.5304        24.573        .15692E-03   -1.5197    
  10  Prefactor     .10000E-03    5.9903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.460        16.170        .98704E-04   -1.4896    
  12  Prefactor     18.359        30.733        .93459E-04   -1.4851    
  13  Prefactor     .10000E-03    15.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .62211        .19892        .21933E-04   -1.5550    
  15  norm          .35887        2.4921        .19915E-02   -1.5588    
  16  norm          .10000E-03    1.9882        .12546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.6684        4.3709        .12266E-03   -1.5086    
  19  Prefactor     .10000E-03    60.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    266.16        .42886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    44.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.9879        .15280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .64819        38.428        .14815       -1.5547    
  24  Prefactor     10.381        29.155        .12435E-03   -1.5063    
  25  norm          5.9714        3.1378        .11336E-03   -1.5219    
  26  Prefactor     19.730        40.018        .90162E-04   -1.4819    
  27  Normalizat    .99431        .25788        .33992E-03   -.93221    
  28  Prefactor     1.0625        .14595        .19558E-03   -.90676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24468e-07
Minuit parameter uncertainties:
  1  40.6276
  2  1.78266e-05
  3  5.68555
  4  7.6795
  5  3.61887
  6  1.08268e-06
  7  24.6382
  8  4.62517e-05
  9  24.6108
  10  1.64854e-06
  11  16.1741
  12  30.7599
  13  2.66026e-06
  14  0.198916
  15  1.89125
  16  3.39481e-07
  17  4.64124e-06
  18  4.37102
  19  4.04533e-05
  20  0.00250755
  21  1.16347e-05
  22  6.65139e-07
  23  9.9877
  24  29.1954
  25  3.13784
  26  40.0725
  27  0.258206
  28  0.146009
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  6.221e-01  1.989e-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.062e+00  1.460e-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.943e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.72
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 4.84e-08
Energy Flux (Fixed Index): 6.13e-05 +/- 1.96e-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) = 8306.9511023
delta logL = 0.165116816977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8306.94348099
delta logL = 0.172738120173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60634       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3333       1.0000          .0000       5.0000    
     3 'Normalizat'    .96109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0762       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=   8306.943     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60633        2.6406        .47322E-02    .61590E-03
   2  alpha         2.3333        3.6453        .26950        .21435E-04
   3  Normalizat    .96104        .15200        .77942E-01    .25814E-04
   4  Prefactor     1.0762        .94322E-01    .38571E-01    .13842E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.606328
  alpha      = 2.33327
  Normalizat = 0.961041
  Prefactor  = 1.07621
 **********
 **   18 **HESSE 
 **********

 FCN=   8306.943     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60633        .20017        .21038E-04   -1.5552    
   2  alpha         2.3333        .36969        .10906E-01   -.66741E-01
   3  Normalizat    .96104        .24794        .34496E-03   -.94347    
   4  Prefactor     1.0762        .14526        .19449E-03   -.90231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64755e-10
Minuit parameter uncertainties:
  1  0.200172
  2  0.371058
  3  0.248234
  4  0.14531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5821': 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) = 8306.94348093
delta logL = 0.1727381807

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  6.063e-01  2.002e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.333e+00  3.711e-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.076e+00  1.453e-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.610e-01  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.01
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.33 +/- 0.37
Photon Flux (Free Index): 1.74e-07 +/- 6.43e-08
Energy Flux (Free Index): 5.57e-05 +/- 1.96e-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/5821/cmap_HighResolution_541555201_541814401_4FGL_J1504.4+1029_daily_bin1166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='5.57e-05', photon_flux_error='4.84e-08', dlogl='1.73e-01', energy_flux='6.13e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-10 21:53:26.163969', photon_index_error2='0.37', photon_index2='2.33', ts='20.72', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='0.99', time_epoch_completed='1631336006.16', return_code='0', job_id='5821', GAL2='1.08', EG2='0.96', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='6.43e-08', ts2='21.01', photon_index='2.12' WHERE bin_id='1166' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:53:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 5821: <4FGL_J1504.4+1029_daily_bin1166> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1166 226.103 10.4978 541555201 541814401 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 :                                   706.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            741 sec.

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

