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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin633
RA = 162.467, Dec = 14.4835
tmin = 403401601, tmax = 403660801
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='229894', job_status='RUN', time_executed='2021-09-02 17:23:53.548435', time_epoch_executed='1630628633.55' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229894

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229894/ft1_4FGL_J1049.8+1429_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229894/ft2_4FGL_J1049.8+1429_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229894/ft1_4FGL_J1049.8+1429_daily_bin633.fits outfile=/scratch/kocevski/229894/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin633.fits ra=162.467 dec=14.4835 rad=12.0 tmin=403401601.0 tmax=403660801.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.09
user 3.87
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229894/ft2_4FGL_J1049.8+1429_daily_bin633.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/229894/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin633.fits evtable="EVENTS" outfile="/scratch/kocevski/229894/ft1_filtered_4FGL_J1049.8+1429_daily_bin633.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.38
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229894/ft1_filtered_4FGL_J1049.8+1429_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/229894/ft2_4FGL_J1049.8+1429_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/229894/ltcube_403401601_403660801_4FGL_J1049.8+1429_daily_bin633.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/229894/ft2_4FGL_J1049.8+1429_daily_bin633.fits
.....................!
real 18.27
user 17.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229894/ft1_filtered_4FGL_J1049.8+1429_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/229894/ft2_4FGL_J1049.8+1429_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/229894/ltcube_403401601_403660801_4FGL_J1049.8+1429_daily_bin633.fits outfile=/scratch/kocevski/229894/expmap_403401601_403660801_4FGL_J1049.8+1429_daily_bin633.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/229894/ltcube_403401601_403660801_4FGL_J1049.8+1429_daily_bin633.fits
.....................!
real 194.08
user 189.48
sys 4.18

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/229894/ft1_filtered_4FGL_J1049.8+1429_daily_bin633.fits scfile=/scratch/kocevski/229894/ft2_4FGL_J1049.8+1429_daily_bin633.fits outfile=/scratch/kocevski/229894/cmap_403401601_403660801_4FGL_J1049.8+1429_daily_bin633.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.64
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229894/ft1_filtered_4FGL_J1049.8+1429_daily_bin633.fits scfile=/scratch/kocevski/229894/ft2_4FGL_J1049.8+1429_daily_bin633.fits outfile=/scratch/kocevski/229894/cmap_HighResolution_403401601_403660801_4FGL_J1049.8+1429_daily_bin633.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.871       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.087       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27284E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0035       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5228       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.944       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.653       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.418       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.161       1.0000         .10000E-03   10000.    
    13 'norm      '    .69187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8185       1.0000         .10000E-03   10000.    
    16 'norm      '    14.238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2324       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86586       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=   6886.270     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2059 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.713        49.462       -.46837E-04    .44097E-04
   2  Prefactor     10.099        35.516       -.21305E-04   -.93484E-05
   3  Prefactor     .10002E-03    73.250       -.51342E-04** at limit **
   4  Prefactor     45.194        28.253        .26152E-04    .29637E-03
   5  Prefactor     4.0087        8.6031        .70293E-06   -.21668E-03
   6  Prefactor     5.5237        3.4168       -.22705E-06   -.97004E-04
   7  Prefactor     .10000E-03    .79987       -.31411E-07** at limit **
   8  Prefactor     15.943        9.9222        .61195E-06    .59573E-04
   9  Prefactor     13.650        8.4174        .14778E-05   -.22444E-04
  10  Prefactor     25.436        14.626       -.39839E-05    .16960E-04
  11  Prefactor     .10001E-03    19.188       -.25231E-05** at limit **
  12  Prefactor     21.140        21.554        .22085E-04    .52577E-04
  13  norm          .68855        1.3023       -.65010E-06   -.23373E-02
  14  Prefactor     .10000E-03    6.4850        .37198E-07** at limit **
  15  Prefactor     7.8151        5.9182       -.78863E-06   -.94157E-05
  16  norm          14.244        13.037        .44864E-05    .18001E-04
  17  Prefactor     .10000E-03    5.4172        .84568E-08** at limit **
  18  Prefactor     .10000E-03    30.585        .26716E-05** at limit **
  19  Normalizat    1.2321        .19850       -.11716E-05    .18362E-03
  20  Prefactor     .86626        .17071       -.10783E-05    .67703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7127
  Prefactor  = 10.0987
  Prefactor  = 0.000100019
  Prefactor  = 45.1943
  Prefactor  = 4.00871
  Prefactor  = 5.52366
  Prefactor  = 0.0001
  Prefactor  = 15.9429
  Prefactor  = 13.6496
  Prefactor  = 25.4356
  Prefactor  = 0.000100011
  Prefactor  = 21.1404
  norm       = 0.688553
  Prefactor  = 0.0001
  Prefactor  = 7.81507
  norm       = 14.244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23205
  Prefactor  = 0.866263
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.270     FROM HESSE     STATUS=OK           299 CALLS     2358 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.713        49.427        .83757E-04   -1.4754    
   2  Prefactor     10.099        35.540        .12616E-03   -1.5072    
   3  Prefactor     .10002E-03    73.933        .21429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.194        28.330        .29819E-03   -1.4362    
   5  Prefactor     4.0087        8.5894        .20156E-03   -1.5308    
   6  Prefactor     5.5237        3.4172        .11339E-03   -1.5238    
   7  Prefactor     .10000E-03    .80627        .72402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.943        9.9067        .10030E-03   -1.4909    
   9  Prefactor     13.650        8.4126        .10840E-03   -1.4969    
  10  Prefactor     25.436        14.621        .79455E-04   -1.4699    
  11  Prefactor     .10001E-03    19.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.140        21.469        .87071E-04   -1.4788    
  13  norm          .68855        1.1989        .11926E-02   -1.5542    
  14  Prefactor     .10000E-03    6.4937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8151        5.9201        .14340E-03   -1.5149    
  16  norm          14.244        13.010        .10615E-03   -1.4953    
  17  Prefactor     .10000E-03    5.4496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2321        .23464        .25714E-03   -.85618    
  20  Prefactor     .86626        .19999        .27948E-03   -.97330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18453e-09
Minuit parameter uncertainties:
  1  49.5158
  2  35.6146
  3  0.00236686
  4  28.3386
  5  8.59201
  6  3.41735
  7  2.79e-07
  8  9.9077
  9  8.4133
  10  14.6233
  11  0.000908073
  12  21.4766
  13  1.19893
  14  3.05967e-06
  15  5.92055
  16  13.0122
  17  2.94627e-06
  18  7.14252e-05
  19  0.234837
  20  0.200155
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.594e+01  9.908e+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:  8.663e-01  2.002e-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.232e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.64
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 9.49e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.56e-05

TS (Fixed Index): 3.64
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229894/likelihoodResults_403401601_403660801_4FGL_J1049.8+1429_daily_bin633.txt

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) = 6885.97671871
delta logL = 0.293537782322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6885.96990864
delta logL = 0.300347852265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.714       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2196       1.0000          .0000       10.000    
     3 'Normalizat'    1.1695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91120       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6885.970     FROM MIGRAD    STATUS=FAILED       101 CALLS      315 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.710        18.035        .61202E-03   -.44117E-04
   2  Index         3.2209        1.4538        .59370E-02    .44092E-03
   3  Normalizat    1.1689        .24340        .26295E-03   -.11111E-04
   4  Prefactor     .91165        .21925        .27344E-03   -.65691E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6885.970     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      389 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.710        18.035        .17628E-03   -1.5053    
   2  Index         3.2209        1.4538        .10589E-02   -.36378    
   3  Normalizat    1.1689        .24340        .51898E-03   -.87570    
   4  Prefactor     .91165        .21925        .46881E-03   -.95735    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6885.970     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      422 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.710        12.685        .24481E-04   -.14861E-04
   2  Index         3.2209        1.0289        .11874E-02    .26617E-05
   3  Normalizat    1.1689        .23536        .10518E-04   -.64853E-06
   4  Prefactor     .91165        .21099        .10938E-04   -.20788E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7098
  Index      = 3.22094
  Normalizat = 1.16889
  Prefactor  = 0.911651
 **********
 **   18 **HESSE 
 **********

 FCN=   6885.970     FROM HESSE     STATUS=OK            23 CALLS      445 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.710        12.181        .97923E-06   -1.5053    
   2  Index         3.2209        .98813        .47496E-04   -.36378    
   3  Normalizat    1.1689        .23437        .21036E-05   -.87570    
   4  Prefactor     .91165        .21006        .21875E-05   -.95735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23042e-13
Minuit parameter uncertainties:
  1  12.1837
  2  0.995651
  3  0.234581
  4  0.210244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229894': 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) = 6885.96990419
delta logL = 0.300352302839

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.071e+01  1.218e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  3.221e+00  9.957e-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:  9.117e-01  2.102e-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.169e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.40
Ra Dec: 162.467 14.483
Photon Index (Free Index): 3.22 +/- 1.00
Photon Flux (Free Index): 1.38e-07 +/- 8.72e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/229894/cmap_HighResolution_403401601_403660801_4FGL_J1049.8+1429_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', photon_flux='9.49e-08', energy_flux2='2.50e-05', photon_flux_error='5.89e-08', dlogl='3.00e-01', energy_flux='2.51e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-02 17:34:41.063493', photon_index_error2='1.00', photon_index2='3.22', ts='3.64', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='1.40e-05', EG='1.23', time_epoch_completed='1630629281.06', return_code='0', job_id='229894', GAL2='0.91', EG2='1.17', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='8.72e-08', ts2='4.40', photon_index='2.59' WHERE bin_id='633' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:34:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 229894: <4FGL_J1049.8+1429_daily_bin633> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin633> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 17:21:45 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:23:37 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:23:37 2021
Terminated at Thu Sep  2 17:34:41 2021
Results reported at Thu Sep  2 17:34:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin633 162.467 14.4835 403401601 403660801 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 :                                   647.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            776 sec.

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

