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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1216
RA = 226.103, Dec = 10.4978
tmin = 554515201, tmax = 554774401
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='5893', job_status='RUN', time_executed='2021-09-10 21:41:28.589318', time_epoch_executed='1631335288.59' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5893

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5893/ft1_4FGL_J1504.4+1029_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5893/ft2_4FGL_J1504.4+1029_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5893/ft1_4FGL_J1504.4+1029_daily_bin1216.fits outfile=/scratch/kocevski/5893/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1216.fits ra=226.103 dec=10.4978 rad=12.0 tmin=554515201.0 tmax=554774401.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 4.13
user 3.89
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5893/ft1_filtered_4FGL_J1504.4+1029_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/5893/ft2_4FGL_J1504.4+1029_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/5893/ltcube_554515201_554774401_4FGL_J1504.4+1029_daily_bin1216.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/5893/ft2_4FGL_J1504.4+1029_daily_bin1216.fits
.....................!
real 12.08
user 11.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5893/ft1_filtered_4FGL_J1504.4+1029_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/5893/ft2_4FGL_J1504.4+1029_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/5893/ltcube_554515201_554774401_4FGL_J1504.4+1029_daily_bin1216.fits outfile=/scratch/kocevski/5893/expmap_554515201_554774401_4FGL_J1504.4+1029_daily_bin1216.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/5893/ltcube_554515201_554774401_4FGL_J1504.4+1029_daily_bin1216.fits
.....................!
real 191.18
user 186.22
sys 4.58

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/5893/ft1_filtered_4FGL_J1504.4+1029_daily_bin1216.fits scfile=/scratch/kocevski/5893/ft2_4FGL_J1504.4+1029_daily_bin1216.fits outfile=/scratch/kocevski/5893/cmap_554515201_554774401_4FGL_J1504.4+1029_daily_bin1216.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5893/ft1_filtered_4FGL_J1504.4+1029_daily_bin1216.fits scfile=/scratch/kocevski/5893/ft2_4FGL_J1504.4+1029_daily_bin1216.fits outfile=/scratch/kocevski/5893/cmap_HighResolution_554515201_554774401_4FGL_J1504.4+1029_daily_bin1216.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9154       1.0000         .10000E-03   10000.    
     2 'norm      '    12.148       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13090E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.829       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24505       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1185       1.0000         .10000E-03   10000.    
    14 'norm      '    .56607       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4223       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8280       1.0000         .10000E-03   10000.    
    17 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.995       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.489       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8812       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.1707       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.165       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3311       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .96896       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=   12155.53     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3462 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9155        20.171       -.11662E-05   -.15482E-03
   2  norm          12.146        11.532        .67868E-06    .92739E-05
   3  Prefactor     .10000E-03    2.9006       -.10490E-06** at limit **
   4  Prefactor     .10000E-03    1.3120        .66099E-07** at limit **
   5  norm          .10001E-03    1.6721       -.10872E-05** at limit **
   6  Prefactor     27.811        41.944       -.26523E-04    .79584E-06
   7  Prefactor     .10000E-03    5.1081        .93659E-06** at limit **
   8  norm          .10000E-03    2.8486       -.29576E-07** at limit **
   9  Prefactor     .10000E-03    10.699        .20026E-05** at limit **
  10  Prefactor     .10000E-03    11.824       -.57683E-05** at limit **
  11  Prefactor     .13457        4.7211       -.18629E-05   -.75630E-04
  12  Prefactor     .10000E-03    3.8439        .20226E-05** at limit **
  13  Prefactor     9.1272        22.871        .24094E-04    .27568E-04
  14  norm          .56605        .17264       -.49187E-07   -.18457E-03
  15  norm          1.4220        1.5068       -.10488E-06   -.15332E-02
  16  norm          2.8279        3.6082       -.15790E-05   -.49682E-03
  17  norm          .10000E-03    10.952        .63866E-06** at limit **
  18  norm          .10000E-03    .60958       -.65260E-09** at limit **
  19  Prefactor     10.994        39.830       -.47616E-05   -.11219E-04
  20  Prefactor     .10000E-03    8.8804        .53816E-05** at limit **
  21  Prefactor     12.516        26.993        .26941E-04    .17235E-06
  22  Prefactor     3.8823        4.0723       -.50321E-06   -.86978E-03
  23  Prefactor     .10000E-03    17.802        .40980E-06** at limit **
  24  Prefactor     .10000E-03    7.5890       -.42525E-05** at limit **
  25  norm          3.1704        2.4817       -.19831E-06   -.17260E-03
  26  Prefactor     12.168        38.458        .41438E-05   -.49176E-05
  27  Normalizat    1.3312        .17339       -.67406E-08    .29922E-03
  28  Prefactor     .96898        .97768E-01   -.27153E-06    .42681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91551
  norm       = 12.1461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 27.8107
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.134568
  Prefactor  = 0.0001
  Prefactor  = 9.12719
  norm       = 0.566046
  norm       = 1.42198
  norm       = 2.82787
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9942
  Prefactor  = 0.0001
  Prefactor  = 12.516
  Prefactor  = 3.88229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17041
  Prefactor  = 12.1676
  Normalizat = 1.33118
  Prefactor  = 0.968979
 **********
 **   18 **HESSE 
 **********

 FCN=   12155.53     FROM HESSE     STATUS=OK           529 CALLS     3991 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9155        20.195        .30031E-03   -1.5431    
   2  norm          12.146        11.526        .11493E-03   -1.5011    
   3  Prefactor     .10000E-03    2.9570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3150        .12332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    3.9065        .27647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.811        42.088        .75943E-04   -1.4653    
   7  Prefactor     .10000E-03    5.1114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13457        5.4857        .86875E-01   -1.5635    
  12  Prefactor     .10000E-03    3.8423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1272        22.836        .13273E-03   -1.5104    
  14  norm          .56605        .17145        .23752E-04   -1.5558    
  15  norm          1.4220        1.4911        .13066E-03   -1.5469    
  16  norm          2.8279        3.6041        .23078E-03   -1.5372    
  17  norm          .10000E-03    10.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .61237        .84033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.994        39.856        .12083E-03   -1.5045    
  20  Prefactor     .10000E-03    8.8880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.516        26.871        .11335E-03   -1.5000    
  22  Prefactor     3.8823        4.0739        .20482E-03   -1.5314    
  23  Prefactor     .10000E-03    17.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.6030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.1704        2.4841        .14944E-03   -1.5352    
  26  Prefactor     12.168        38.456        .11485E-03   -1.5010    
  27  Normalizat    1.3312        .20861        .30332E-03   -.82640    
  28  Prefactor     .96898        .11804        .20218E-03   -.93771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95538e-09
Minuit parameter uncertainties:
  1  12.4443
  2  11.5281
  3  2.10627e-06
  4  6.05536e-07
  5  0.00028007
  6  42.1328
  7  1.40851e-05
  8  8.20853e-06
  9  1.35014e-05
  10  2.97694e-05
  11  1.7179
  12  1.41778e-05
  13  22.8576
  14  0.171454
  15  1.49115
  16  3.60442
  17  4.45283e-06
  18  9.19535e-07
  19  39.9528
  20  2.49015e-06
  21  26.8968
  22  4.07422
  23  5.42856e-05
  24  3.53489e-06
  25  2.48422
  26  38.5349
  27  0.208743
  28  0.118068
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.690e-01  1.181e-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.331e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.89
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 4.17e-08
Energy Flux (Fixed Index): 5.58e-05 +/- 1.69e-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) = 12151.6242724
delta logL = 3.90219389273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12151.5874687
delta logL = 3.93899756908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40898       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1916       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0532       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=   12151.59     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      218 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40916        1.1262        .34490E-02    .12064E-02
   2  alpha         3.1910        3.7278        .21500        .10251E-03
   3  Normalizat    1.1207        .79628E-01    .73510E-01    .29512E-04
   4  Prefactor     1.0532        .44057E-01    .39726E-01    .52809E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.409161
  alpha      = 3.19104
  Normalizat = 1.12073
  Prefactor  = 1.05319
 **********
 **   18 **HESSE 
 **********

 FCN=   12151.59     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40916        .21178        .15334E-04   -1.5580    
   2  alpha         3.1910        .50586        .92382E-02    .28006    
   3  Normalizat    1.1207        .21765        .32531E-03   -.89089    
   4  Prefactor     1.0532        .12327        .19479E-03   -.90977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7798e-09
Minuit parameter uncertainties:
  1  0.211776
  2  0.509673
  3  0.217826
  4  0.123305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5893': 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) = 12151.587468
delta logL = 3.93899834127

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.092e-01  2.118e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  3.191e+00  5.097e-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.053e+00  1.233e-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.121e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.33
Ra Dec: 226.103 10.498
Photon Index (Free Index): 3.19 +/- 0.51
Photon Flux (Free Index): 2.78e-07 +/- 7.28e-08
Energy Flux (Free Index): 5.26e-05 +/- 1.29e-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/5893/cmap_HighResolution_554515201_554774401_4FGL_J1504.4+1029_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='5.26e-05', photon_flux_error='4.17e-08', dlogl='3.94e+00', energy_flux='5.58e-05', photon_flux2='2.78e-07', job_status='DONE', time_completed='2021-09-10 21:56:58.667628', photon_index_error2='0.51', photon_index2='3.19', ts='20.89', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.33', time_epoch_completed='1631336218.67', return_code='0', job_id='5893', GAL2='1.05', EG2='1.12', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='7.28e-08', ts2='30.33', photon_index='2.12' WHERE bin_id='1216' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:56:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 5893: <4FGL_J1504.4+1029_daily_bin1216> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1216 226.103 10.4978 554515201 554774401 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 :                                   899.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            948 sec.

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

