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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1290
RA = 226.103, Dec = 10.4978
tmin = 573696001, tmax = 573955201
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='7739', job_status='RUN', time_executed='2021-09-10 21:48:14.403812', time_epoch_executed='1631335694.4' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7739

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7739/ft1_4FGL_J1504.4+1029_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7739/ft2_4FGL_J1504.4+1029_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7739/ft1_4FGL_J1504.4+1029_daily_bin1290.fits outfile=/scratch/kocevski/7739/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1290.fits ra=226.103 dec=10.4978 rad=12.0 tmin=573696001.0 tmax=573955201.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.46
user 4.18
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7739/ft2_4FGL_J1504.4+1029_daily_bin1290.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/7739/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1290.fits evtable="EVENTS" outfile="/scratch/kocevski/7739/ft1_filtered_4FGL_J1504.4+1029_daily_bin1290.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/7739/ft1_filtered_4FGL_J1504.4+1029_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/7739/ft2_4FGL_J1504.4+1029_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/7739/ltcube_573696001_573955201_4FGL_J1504.4+1029_daily_bin1290.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/7739/ft2_4FGL_J1504.4+1029_daily_bin1290.fits
.....................!
real 12.48
user 12.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7739/ft1_filtered_4FGL_J1504.4+1029_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/7739/ft2_4FGL_J1504.4+1029_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/7739/ltcube_573696001_573955201_4FGL_J1504.4+1029_daily_bin1290.fits outfile=/scratch/kocevski/7739/expmap_573696001_573955201_4FGL_J1504.4+1029_daily_bin1290.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/7739/ltcube_573696001_573955201_4FGL_J1504.4+1029_daily_bin1290.fits
.....................!
real 191.35
user 185.54
sys 5.38

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/7739/ft1_filtered_4FGL_J1504.4+1029_daily_bin1290.fits scfile=/scratch/kocevski/7739/ft2_4FGL_J1504.4+1029_daily_bin1290.fits outfile=/scratch/kocevski/7739/cmap_573696001_573955201_4FGL_J1504.4+1029_daily_bin1290.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7739/ft1_filtered_4FGL_J1504.4+1029_daily_bin1290.fits scfile=/scratch/kocevski/7739/ft2_4FGL_J1504.4+1029_daily_bin1290.fits outfile=/scratch/kocevski/7739/cmap_HighResolution_573696001_573955201_4FGL_J1504.4+1029_daily_bin1290.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/7739/ft1_filtered_4FGL_J1504.4+1029_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/7739/ft2_4FGL_J1504.4+1029_daily_bin1290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7739/Model_4FGL_J1504.4+1029_daily_bin1290.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/7739/ft1_filtered_4FGL_J1504.4+1029_daily_bin1290.fits.....................!
real 56.93
user 55.50
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.878       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66425E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6449       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.365       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3959       1.0000         .10000E-03   10000.    
    15 'norm      '    .45647       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7506       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.610       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.585       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5899       1.0000         .10000E-03   10000.    
    23 'Prefactor '    80.699       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    18.135       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .66115       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2253       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=   7665.877     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3557 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.616       -.36220E-05** at limit **
   2  norm          16.122        17.072        .11805E-06    .73225E-04
   3  Prefactor     13.879        8.9777       -.46116E-06   -.81790E-03
   4  Prefactor     .10000E-03    2.0287        .23778E-07** at limit **
   5  norm          .10000E-03    1.0204       -.31913E-08** at limit **
   6  Prefactor     .10000E-03    36.777       -.19244E-04** at limit **
   7  Prefactor     .10277E-03    12.555       -.12578E-05** at limit **
   8  norm          .10000E-03    8.9211        .70000E-07** at limit **
   9  Prefactor     .10000E-03    50.297        .13356E-04** at limit **
  10  Prefactor     3.6478        35.132       -.15255E-05   -.19407E-04
  11  Prefactor     10.365        12.455       -.12860E-05   -.89017E-03
  12  Prefactor     .10000E-03    15.119        .89720E-05** at limit **
  13  Prefactor     .10000E-03    25.590        .14604E-04** at limit **
  14  norm          1.3959        .27336        .76874E-08    .32575E-03
  15  norm          .45180        1.8855       -.79388E-06   -.61348E-03
  16  norm          .10000E-03    2.2265        .16240E-07** at limit **
  17  norm          .10000E-03    17.271       -.46055E-05** at limit **
  18  norm          4.7509        3.8134        .54332E-07    .63296E-04
  19  Prefactor     19.609        34.208       -.74181E-06   -.10792E-04
  20  Prefactor     .10000E-03    19.368       -.68327E-05** at limit **
  21  Prefactor     54.588        43.760        .57584E-06   -.85456E-05
  22  Prefactor     1.5900        2.9210       -.28063E-06   -.49998E-03
  23  Prefactor     80.705        62.236        .35262E-05   -.15026E-05
  24  Prefactor     .10000E-03    6.4546       -.13529E-07** at limit **
  25  norm          18.135        5.2784       -.17344E-06    .69225E-05
  26  Prefactor     .10000E-03    185.11       -.44246E-05** at limit **
  27  Normalizat    .66100        .25981       -.97834E-07    .38401E-04
  28  Prefactor     1.2254        .14595        .25607E-06    .15802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.122
  Prefactor  = 13.8789
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102766
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.64777
  Prefactor  = 10.3654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39593
  norm       = 0.451798
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.75086
  Prefactor  = 19.6088
  Prefactor  = 0.0001
  Prefactor  = 54.5878
  Prefactor  = 1.59002
  Prefactor  = 80.7052
  Prefactor  = 0.0001
  norm       = 18.1354
  Prefactor  = 0.0001
  Normalizat = 0.661001
  Prefactor  = 1.22536
 **********
 **   18 **HESSE 
 **********

 FCN=   7665.877     FROM HESSE     STATUS=OK           527 CALLS     4084 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.122        17.073        .49875E-03   -1.4905    
   3  Prefactor     13.879        9.0354        .53759E-03   -1.4963    
   4  Prefactor     .10000E-03    2.0316        .12176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0230        .86366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10277E-03    17.518        .11839       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.9496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6478        35.014        .21160E-03   -1.5326    
  11  Prefactor     10.365        12.695        .62227E-03   -1.5064    
  12  Prefactor     .10000E-03    15.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3959        .27312        .19123E-04   -1.5472    
  15  norm          .45180        3.6051        .21543E-02   -1.5574    
  16  norm          .10000E-03    2.2277        .12759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7509        3.7897        .14518E-03   -1.5272    
  19  Prefactor     19.609        34.206        .90446E-04   -1.4822    
  20  Prefactor     .10000E-03    19.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     54.588        43.637        .54292E-04   -1.4229    
  22  Prefactor     1.5900        2.8927        .19769E-03   -1.5456    
  23  Prefactor     80.705        62.041        .44709E-04   -1.3909    
  24  Prefactor     .10000E-03    6.4558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          18.135        5.2780        .94051E-04   -1.4856    
  26  Prefactor     .10000E-03    185.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .66100        .28665        .42133E-03   -1.0545    
  28  Prefactor     1.2254        .16538        .19071E-03   -.85555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70841e-09
Minuit parameter uncertainties:
  1  4.06367e-06
  2  17.0782
  3  9.03624
  4  1.19669e-06
  5  3.1687e-07
  6  1.7413e-05
  7  0.0139256
  8  1.0243e-05
  9  0.000197393
  10  22.6199
  11  12.6978
  12  1.53816e-05
  13  2.292e-05
  14  0.273119
  15  2.55241
  16  2.7224e-07
  17  5.3477e-07
  18  3.78993
  19  34.2402
  20  9.59207e-06
  21  43.6623
  22  2.89298
  23  62.091
  24  5.48736e-09
  25  5.27814
  26  2.33505e-05
  27  0.287305
  28  0.165447
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.396e+00  2.731e-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.225e+00  1.654e-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:  6.610e-01  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 79.13
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.40e-07 +/- 6.65e-08
Energy Flux (Fixed Index): 1.38e-04 +/- 2.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) = 7665.58000271
delta logL = 0.297093477276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7665.56765274
delta logL = 0.309443442763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3990       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9739       1.0000          .0000       5.0000    
     3 'Normalizat'    .70317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2084       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=   7665.568     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3987        .28553        .44145E-02   -.18553E-02
   2  alpha         1.9739        .19039        .14548       -.41932E-03
   3  Normalizat    .70335        .24184        .92477E-01    .87951E-04
   4  Prefactor     1.2083        .14368        .34436E-01    .18246E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39871
  alpha      = 1.97385
  Normalizat = 0.70335
  Prefactor  = 1.20832
 **********
 **   18 **HESSE 
 **********

 FCN=   7665.568     FROM HESSE     STATUS=OK            27 CALLS      229 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3987        .27749        .19524E-04   -1.5471    
   2  alpha         1.9739        .18881        .63062E-03   -.21204    
   3  Normalizat    .70335        .27603        .40971E-03   -1.0376    
   4  Prefactor     1.2083        .16412        .19191E-03   -.86076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13295e-09
Minuit parameter uncertainties:
  1  0.277487
  2  0.188999
  3  0.276579
  4  0.164185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7739': 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) = 7665.56765199
delta logL = 0.30944419384

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.399e+00  2.775e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.974e+00  1.890e-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.208e+00  1.642e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  7.033e-01  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 79.13
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.97 +/- 0.19
Photon Flux (Free Index): 3.08e-07 +/- 7.37e-08
Energy Flux (Free Index): 1.54e-04 +/- 3.85e-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/7739/cmap_HighResolution_573696001_573955201_4FGL_J1504.4+1029_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.40e-07', energy_flux2='1.54e-04', photon_flux_error='6.65e-08', dlogl='3.09e-01', energy_flux='1.38e-04', photon_flux2='3.08e-07', job_status='DONE', time_completed='2021-09-10 22:00:05.072060', photon_index_error2='0.19', photon_index2='1.97', ts='79.13', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='3.85e-05', EG='0.66', time_epoch_completed='1631336405.07', return_code='0', job_id='7739', GAL2='1.21', EG2='0.70', return_code2='0', energy_flux_error='2.69e-05', photon_flux_error2='7.37e-08', ts2='79.13', photon_index='2.12' WHERE bin_id='1290' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:00:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 7739: <4FGL_J1504.4+1029_daily_bin1290> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1290 226.103 10.4978 573696001 573955201 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 :                                   682.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            840 sec.

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

