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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1505
RA = 162.467, Dec = 14.4835
tmin = 629424001, tmax = 629683201
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='233195', job_status='RUN', time_executed='2021-09-02 17:35:40.411686', time_epoch_executed='1630629340.41' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233195

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233195/ft1_4FGL_J1049.8+1429_daily_bin1505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233195/ft1_4FGL_J1049.8+1429_daily_bin1505.fits outfile=/scratch/kocevski/233195/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1505.fits ra=162.467 dec=14.4835 rad=12.0 tmin=629424001.0 tmax=629683201.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.61
user 3.34
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.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/233195/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1505.fits evtable="EVENTS" outfile="/scratch/kocevski/233195/ft1_filtered_4FGL_J1049.8+1429_daily_bin1505.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.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233195/ft1_filtered_4FGL_J1049.8+1429_daily_bin1505.fits" evtable="EVENTS" scfile=/scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits sctable="SC_DATA" outfile=/scratch/kocevski/233195/ltcube_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.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/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits
.....................!
real 17.26
user 16.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233195/ft1_filtered_4FGL_J1049.8+1429_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits sctable="SC_DATA" expcube=/scratch/kocevski/233195/ltcube_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.fits outfile=/scratch/kocevski/233195/expmap_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.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/233195/ltcube_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.fits
.....................!
real 194.33
user 188.62
sys 5.26

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J1049.8+1429 @ 162.467 14.4835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/233195/ft1_filtered_4FGL_J1049.8+1429_daily_bin1505.fits scfile=/scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits outfile=/scratch/kocevski/233195/cmap_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.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=162.467 yref=14.4835 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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233195/ft1_filtered_4FGL_J1049.8+1429_daily_bin1505.fits scfile=/scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits outfile=/scratch/kocevski/233195/cmap_HighResolution_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.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=162.467 yref=14.4835 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/233195/ft1_filtered_4FGL_J1049.8+1429_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233195/Model_4FGL_J1049.8+1429_daily_bin1505.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/233195/ft1_filtered_4FGL_J1049.8+1429_daily_bin1505.fits.....................!
real 60.42
user 58.74
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233195/ft1_filtered_4FGL_J1049.8+1429_daily_bin1505.fits', '/scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits', expMap='/scratch/kocevski/233195/expmap_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.fits', expCube='/scratch/kocevski/233195/ltcube_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233195/Model_4FGL_J1049.8+1429_daily_bin1505.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1049.8+1429'

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/233195/ft1_filtered_4FGL_J1049.8+1429_daily_bin1505.fits
Spacecraft file(s): /scratch/kocevski/233195/ft2_4FGL_J1049.8+1429_daily_bin1505.fits
Exposure map: /scratch/kocevski/233195/expmap_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.fits
Exposure cube: /scratch/kocevski/233195/ltcube_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233195/Model_4FGL_J1049.8+1429_daily_bin1505.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) = 6464.79587372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.607       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.797       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8014       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7868       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.443       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .87072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.143       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3051       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.021       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6702       1.0000         .10000E-03   10000.    
    16 'norm      '    6.1751       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3329       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .59890       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4256       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6464.791     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2045 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.647       -.20131E-06** at limit **
   2  Prefactor     28.612        47.817        .89535E-06    .35448E-04
   3  Prefactor     .10001E-03    37.074        .20904E-05** at limit **
   4  Prefactor     .10000E-03    11.052        .70474E-07** at limit **
   5  Prefactor     15.797        8.8819        .82295E-07    .67902E-05
   6  Prefactor     4.7998        3.6013        .18487E-06    .76099E-03
   7  Prefactor     3.7867        2.5761        .69853E-07    .58628E-04
   8  Prefactor     26.442        8.6823        .69231E-07    .11367E-03
   9  Prefactor     .10132E-03    10.023       -.30699E-05** at limit **
  10  Prefactor     10.143        12.320        .22118E-06    .13024E-04
  11  Prefactor     7.3047        11.526        .10560E-06    .79606E-05
  12  Prefactor     .10000E-03    6.5188       -.44749E-07** at limit **
  13  norm          .10000E-03    .64459       -.14677E-06** at limit **
  14  Prefactor     13.018        16.412        .11538E-06    .67792E-04
  15  Prefactor     7.6704        5.2022        .53786E-07    .59582E-04
  16  norm          6.1751        8.0347        .34588E-05    .64105E-03
  17  Prefactor     3.3331        4.8738        .12467E-06    .11070E-05
  18  Prefactor     .10001E-03    44.039       -.27410E-05** at limit **
  19  Normalizat    .59887        .18790       -.80638E-06    .20171E-03
  20  Prefactor     1.4255        .17864       -.45762E-06    .24781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.6125
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 15.7973
  Prefactor  = 4.79978
  Prefactor  = 3.78669
  Prefactor  = 26.4422
  Prefactor  = 0.000101319
  Prefactor  = 10.1425
  Prefactor  = 7.30469
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0184
  Prefactor  = 7.6704
  norm       = 6.1751
  Prefactor  = 3.33309
  Prefactor  = 0.000100012
  Normalizat = 0.598871
  Prefactor  = 1.42555
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.791     FROM HESSE     STATUS=OK           301 CALLS     2346 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.612        47.754        .74905E-04   -1.4638    
   3  Prefactor     .10001E-03    37.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.797        8.8620        .10077E-03   -1.4913    
   6  Prefactor     4.7998        3.5382        .12321E-03   -1.5270    
   7  Prefactor     3.7867        2.5658        .98577E-04   -1.5319    
   8  Prefactor     26.442        8.6697        .77904E-04   -1.4679    
   9  Prefactor     .10132E-03    61.773        .38460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.143        12.223        .12582E-03   -1.5071    
  11  Prefactor     7.3047        11.439        .14840E-03   -1.5167    
  12  Prefactor     .10000E-03    6.5319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8645        .12197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.018        16.393        .11101E-03   -1.4986    
  15  Prefactor     7.6704        5.2000        .14479E-03   -1.5154    
  16  norm          6.1751        8.1499        .80776E-03   -1.5211    
  17  Prefactor     3.3331        4.8625        .20895E-03   -1.5343    
  18  Prefactor     .10001E-03    45.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .59887        .21121        .32594E-03   -1.0803    
  20  Prefactor     1.4255        .20532        .22555E-03   -.79647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05546e-08
Minuit parameter uncertainties:
  1  9.59909e-05
  2  47.8177
  3  0.00124692
  4  8.83428e-06
  5  8.86275
  6  3.53832
  7  2.56584
  8  8.67008
  9  0.0180739
  10  12.2265
  11  11.4425
  12  8.09325e-06
  13  4.33473e-05
  14  16.3984
  15  5.20035
  16  8.1514
  17  4.86311
  18  0.00146257
  19  0.211493
  20  0.205439
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.644e+01  8.670e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.426e+00  2.054e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  5.989e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.15
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.57e-07 +/- 5.16e-08
Energy Flux (Fixed Index): 4.16e-05 +/- 1.36e-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) = 6464.54457759
delta logL = 0.246007390198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6464.54321117
delta logL = 0.247373812798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.598       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3443       1.0000          .0000       10.000    
     3 'Normalizat'    .62956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6464.543     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      297 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.598        10.499        .73644E-04    .45318E-03
   2  Index         2.3443        .34437        .53376E-02    .88784E-04
   3  Normalizat    .62959        .20380        .31853E-03   -.15240E-04
   4  Prefactor     1.4045        .20447        .22695E-03   -.19938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5975
  Index      = 2.34429
  Normalizat = 0.629591
  Prefactor  = 1.40455
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.543     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.598        10.426        .14729E-04   -1.4619    
   2  Index         2.3443        .34169        .21350E-03   -.55995    
   3  Normalizat    .62959        .20391        .12741E-04   -1.0674    
   4  Prefactor     1.4045        .20457        .90778E-05   -.80249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16959e-11
Minuit parameter uncertainties:
  1  10.4262
  2  0.34206
  3  0.204156
  4  0.204686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233195': 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) = 6464.54321115
delta logL = 0.247373831189

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.960e+01  1.043e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.344e+00  3.421e-01  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.405e+00  2.047e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  6.296e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.40
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.34 +/- 0.34
Photon Flux (Free Index): 1.35e-07 +/- 5.70e-08
Energy Flux (Free Index): 4.78e-05 +/- 2.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/233195/cmap_HighResolution_629424001_629683201_4FGL_J1049.8+1429_daily_bin1505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-07', energy_flux2='4.78e-05', photon_flux_error='5.16e-08', dlogl='2.47e-01', energy_flux='4.16e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-02 17:45:11.544850', photon_index_error2='0.34', photon_index2='2.34', ts='23.15', fit_tolerance='1e-08', GAL='1.43', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='0.60', time_epoch_completed='1630629911.54', return_code='0', job_id='233195', GAL2='1.40', EG2='0.63', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='5.70e-08', ts2='23.40', photon_index='2.59' WHERE bin_id='1505' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:45:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 233195: <4FGL_J1049.8+1429_daily_bin1505> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1505> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 17:32:03 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:35:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 17:35:24 2021
Terminated at Thu Sep  2 17:45:12 2021
Results reported at Thu Sep  2 17:45:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1505 162.467 14.4835 629424001 629683201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1049.8+1429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   569.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            789 sec.

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

