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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin958
RA = 162.467, Dec = 14.4835
tmin = 487641601, tmax = 487900801
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='231342', job_status='RUN', time_executed='2021-09-02 17:27:25.570042', time_epoch_executed='1630628845.57' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231342

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231342/ft1_4FGL_J1049.8+1429_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231342/ft2_4FGL_J1049.8+1429_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231342/ft1_4FGL_J1049.8+1429_daily_bin958.fits outfile=/scratch/kocevski/231342/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin958.fits ra=162.467 dec=14.4835 rad=12.0 tmin=487641601.0 tmax=487900801.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 5.16
user 4.87
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231342/ft1_filtered_4FGL_J1049.8+1429_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/231342/ft2_4FGL_J1049.8+1429_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/231342/ltcube_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.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/231342/ft2_4FGL_J1049.8+1429_daily_bin958.fits
.....................!
real 18.06
user 17.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231342/ft1_filtered_4FGL_J1049.8+1429_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/231342/ft2_4FGL_J1049.8+1429_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/231342/ltcube_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.fits outfile=/scratch/kocevski/231342/expmap_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.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/231342/ltcube_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.fits
.....................!
real 191.73
user 187.00
sys 4.07

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/231342/ft1_filtered_4FGL_J1049.8+1429_daily_bin958.fits scfile=/scratch/kocevski/231342/ft2_4FGL_J1049.8+1429_daily_bin958.fits outfile=/scratch/kocevski/231342/cmap_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.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.62
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231342/ft1_filtered_4FGL_J1049.8+1429_daily_bin958.fits scfile=/scratch/kocevski/231342/ft2_4FGL_J1049.8+1429_daily_bin958.fits outfile=/scratch/kocevski/231342/cmap_HighResolution_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.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.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231342/ft1_filtered_4FGL_J1049.8+1429_daily_bin958.fits', '/scratch/kocevski/231342/ft2_4FGL_J1049.8+1429_daily_bin958.fits', expMap='/scratch/kocevski/231342/expmap_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.fits', expCube='/scratch/kocevski/231342/ltcube_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231342/Model_4FGL_J1049.8+1429_daily_bin958.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/231342/ft1_filtered_4FGL_J1049.8+1429_daily_bin958.fits
Spacecraft file(s): /scratch/kocevski/231342/ft2_4FGL_J1049.8+1429_daily_bin958.fits
Exposure map: /scratch/kocevski/231342/expmap_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.fits
Exposure cube: /scratch/kocevski/231342/ltcube_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231342/Model_4FGL_J1049.8+1429_daily_bin958.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) = 4844.07000437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.034       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5277       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4075       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9309       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.403       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.453       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.079       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4432       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .47754E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.050       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.038       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .18699       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6688       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=   4844.039     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     2404 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.191        90.052        .59744E-04    .34252E-06
   2  Prefactor     .10000E-03    17.854        .18142E-02** at limit **
   3  Prefactor     34.783        89.156        .33865E-03    .69156E-05
   4  Prefactor     .10000E-03    23.413        .18142E-02** at limit **
   5  Prefactor     3.5290        6.2744        .10761E-02    .19269E-04
   6  Prefactor     4.4090        4.1767        .12766E-03    .56993E-05
   7  Prefactor     3.9318        2.7178        .89584E-04    .15229E-04
   8  Prefactor     52.407        13.052        .55404E-04    .13132E-04
   9  Prefactor     14.453        10.964        .10536E-03   -.10791E-05
  10  Prefactor     .10000E-03    2.4029        .10528E-02** at limit **
  11  Prefactor     .10000E-03    2.9638        .11697E-02** at limit **
  12  Prefactor     10.080        11.396        .12622E-03    .66655E-05
  13  norm          2.4432        1.3790        .59112E-04   -.67313E-05
  14  Prefactor     .10000E-03    99.505        .57726E-02** at limit **
  15  Prefactor     .10000E-03    1.8453        .92312E-03** at limit **
  16  norm          14.052        10.850        .53428E-03    .10852E-05
  17  Prefactor     9.9283        10.769        .63599E-03    .40578E-05
  18  Prefactor     19.051        38.486        .91793E-04    .24770E-06
  19  Normalizat    .18703        .23682        .55436E-03    .24814E-05
  20  Prefactor     1.6686        .22965        .20779E-03   -.82070E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1906
  Prefactor  = 0.0001
  Prefactor  = 34.7828
  Prefactor  = 0.0001
  Prefactor  = 3.52904
  Prefactor  = 4.40897
  Prefactor  = 3.93177
  Prefactor  = 52.4068
  Prefactor  = 14.4527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0802
  norm       = 2.44316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0517
  Prefactor  = 9.92826
  Prefactor  = 19.0511
  Normalizat = 0.187033
  Prefactor  = 1.66863
 **********
 **   18 **HESSE 
 **********

 FCN=   4844.039     FROM HESSE     STATUS=OK           273 CALLS     2677 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.191        90.015        .11949E-04   -1.4362    
   2  Prefactor     .10000E-03    17.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.783        89.137        .13546E-04   -1.4528    
   4  Prefactor     .10000E-03    23.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5290        6.2696        .43045E-04   -1.5332    
   6  Prefactor     4.4090        4.1762        .51066E-05   -1.5288    
   7  Prefactor     3.9318        2.7171        .35834E-05   -1.5311    
   8  Prefactor     52.407        13.051        .22162E-05   -1.4259    
   9  Prefactor     14.453        10.963        .42142E-05   -1.4947    
  10  Prefactor     .10000E-03    2.4029        .21057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9638        .23394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.080        11.396        .50486E-05   -1.5073    
  13  norm          2.4432        1.3790        .23645E-05   -1.5395    
  14  Prefactor     .10000E-03    101.29        .11545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8453        .18462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.052        10.849        .21371E-04   -1.4958    
  17  Prefactor     9.9283        10.769        .25440E-04   -1.5078    
  18  Prefactor     19.051        38.491        .36717E-05   -1.4835    
  19  Normalizat    .18703        .23637        .22174E-04   -1.3038    
  20  Prefactor     1.6686        .22936        .83115E-05   -.72920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41633e-11
Minuit parameter uncertainties:
  1  90.287
  2  1.79304e-06
  3  89.4815
  4  0.000161868
  5  6.27075
  6  4.17647
  7  2.71721
  8  13.0516
  9  10.9643
  10  1.59314e-06
  11  1.25039e-06
  12  11.398
  13  1.37897
  14  7.47643e-05
  15  3.96095e-07
  16  10.8506
  17  10.7706
  18  38.5413
  19  0.237653
  20  0.229506
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  5.241e+01  1.305e+01  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.669e+00  2.295e-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:  1.870e-01  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.20
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.12e-07 +/- 7.76e-08
Energy Flux (Fixed Index): 8.24e-05 +/- 2.05e-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) = 4843.80500913
delta logL = 0.233623636399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4843.70491
delta logL = 0.333722766028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.367       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3677       1.0000          .0000       10.000    
     3 'Normalizat'    .22977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6378       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.

 FCN=   4843.705     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.405        26.882        .13018E-02    .34496E-04
   2  Index         2.3673        .43546        .82793E-01    .41973E-04
   3  Normalizat    .22987        .26065        .11363        .12137E-03
   4  Prefactor     1.6377        .26398        .47369E-01    .12143E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.4055
  Index      = 2.36732
  Normalizat = 0.229874
  Prefactor  = 1.63769
 **********
 **   18 **HESSE 
 **********

 FCN=   4843.705     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.405        16.493        .52071E-04   -1.4165    
   2  Index         2.3673        .26682        .35525E-02   -.55452    
   3  Normalizat    .22987        .22428        .50202E-03   -1.2730    
   4  Prefactor     1.6377        .22969        .20936E-03   -.73753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30591e-10
Minuit parameter uncertainties:
  1  16.4947
  2  0.266999
  3  0.22516
  4  0.22984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231342': 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) = 4843.70490698
delta logL = 0.333725789644

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  5.941e+01  1.649e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.367e+00  2.670e-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.638e+00  2.298e-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:  2.299e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.26
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.37 +/- 0.27
Photon Flux (Free Index): 2.77e-07 +/- 8.29e-08
Energy Flux (Free Index): 9.50e-05 +/- 3.15e-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/231342/cmap_HighResolution_487641601_487900801_4FGL_J1049.8+1429_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-07', energy_flux2='9.50e-05', photon_flux_error='7.76e-08', dlogl='3.34e-01', energy_flux='8.24e-05', photon_flux2='2.77e-07', job_status='DONE', time_completed='2021-09-02 17:36:11.922563', photon_index_error2='0.27', photon_index2='2.37', ts='38.20', fit_tolerance='1e-08', GAL='1.67', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='0.19', time_epoch_completed='1630629371.92', return_code='0', job_id='231342', GAL2='1.64', EG2='0.23', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='8.29e-08', ts2='38.26', photon_index='2.59' WHERE bin_id='958' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 231342: <4FGL_J1049.8+1429_daily_bin958> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin958> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 17:26:13 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:27:12 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:27:12 2021
Terminated at Thu Sep  2 17:36:12 2021
Results reported at Thu Sep  2 17:36:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin958 162.467 14.4835 487641601 487900801 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 :                                   523.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            599 sec.

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

