/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 139 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 = 7543
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1049.8+1429_daily_bin242
RA = 162.467, Dec = 14.4835
tmin = 302054401, tmax = 302313601
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='221235', job_status='RUN', time_executed='2021-09-02 16:59:46.028589', time_epoch_executed='1630627186.03' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='242'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221235/ft1_4FGL_J1049.8+1429_daily_bin242.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221235/ft2_4FGL_J1049.8+1429_daily_bin242.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221235/ft1_4FGL_J1049.8+1429_daily_bin242.fits outfile=/scratch/kocevski/221235/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin242.fits ra=162.467 dec=14.4835 rad=12.0 tmin=302054401.0 tmax=302313601.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 6.90
user 2.70
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221235/ft2_4FGL_J1049.8+1429_daily_bin242.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/221235/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin242.fits evtable="EVENTS" outfile="/scratch/kocevski/221235/ft1_filtered_4FGL_J1049.8+1429_daily_bin242.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 1.91
user 0.30
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221235/ft1_filtered_4FGL_J1049.8+1429_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/221235/ft2_4FGL_J1049.8+1429_daily_bin242.fits sctable="SC_DATA" expcube=/scratch/kocevski/221235/ltcube_302054401_302313601_4FGL_J1049.8+1429_daily_bin242.fits outfile=/scratch/kocevski/221235/expmap_302054401_302313601_4FGL_J1049.8+1429_daily_bin242.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/221235/ltcube_302054401_302313601_4FGL_J1049.8+1429_daily_bin242.fits
.....................!
real 158.12
user 153.67
sys 3.69

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/221235/ft1_filtered_4FGL_J1049.8+1429_daily_bin242.fits scfile=/scratch/kocevski/221235/ft2_4FGL_J1049.8+1429_daily_bin242.fits outfile=/scratch/kocevski/221235/cmap_302054401_302313601_4FGL_J1049.8+1429_daily_bin242.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.49
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221235/ft1_filtered_4FGL_J1049.8+1429_daily_bin242.fits scfile=/scratch/kocevski/221235/ft2_4FGL_J1049.8+1429_daily_bin242.fits outfile=/scratch/kocevski/221235/cmap_HighResolution_302054401_302313601_4FGL_J1049.8+1429_daily_bin242.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.50
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.108       1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.376       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32185E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9328       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0356       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5622       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5910       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.085       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3911       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5144       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92129       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1121       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=   6085.724     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2059 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.204        .80049E-05** at limit **
   2  Prefactor     53.109        41.050        .44264E-06   -.11188E-04
   3  Prefactor     59.363        59.636       -.14203E-04    .13875E-03
   4  Prefactor     .10000E-03    17.303        .21875E-05** at limit **
   5  Prefactor     7.9384        8.8635        .42964E-06   -.54684E-04
   6  Prefactor     2.0363        3.6813       -.40995E-06   -.70703E-03
   7  Prefactor     .10000E-03    .99229       -.10733E-06** at limit **
   8  Prefactor     5.5637        6.8631       -.65824E-06   -.12915E-03
   9  Prefactor     .10000E-03    5.1297        .38144E-06** at limit **
  10  Prefactor     4.5682        10.967       -.79785E-05   -.15012E-03
  11  Prefactor     22.101        14.018        .57619E-05   -.31291E-03
  12  Prefactor     .10000E-03    6.0828        .21949E-05** at limit **
  13  norm          1.3910        1.3462       -.85930E-07   -.49127E-03
  14  Prefactor     .10000E-03    17.741       -.58177E-05** at limit **
  15  Prefactor     2.5142        7.2080       -.18572E-05   -.35878E-03
  16  norm          .10000E-03    5.9172       -.25778E-05** at limit **
  17  Prefactor     .10000E-03    4.5611       -.38233E-07** at limit **
  18  Prefactor     .10000E-03    13.098        .93967E-06** at limit **
  19  Normalizat    .92103        .19149        .16041E-05    .79130E-04
  20  Prefactor     1.1123        .17279       -.57379E-07    .15823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 53.1092
  Prefactor  = 59.3634
  Prefactor  = 0.000100002
  Prefactor  = 7.9384
  Prefactor  = 2.03626
  Prefactor  = 0.0001
  Prefactor  = 5.5637
  Prefactor  = 0.0001
  Prefactor  = 4.56821
  Prefactor  = 22.1008
  Prefactor  = 0.0001
  norm       = 1.39103
  Prefactor  = 0.0001
  Prefactor  = 2.51423
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.921033
  Prefactor  = 1.11233
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.724     FROM HESSE     STATUS=OK           295 CALLS     2354 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.109        41.047        .55037E-04   -1.4249    
   3  Prefactor     59.363        59.308        .52067E-04   -1.4165    
   4  Prefactor     .10000E-03    17.437        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9384        8.8490        .14236E-03   -1.5144    
   6  Prefactor     2.0363        3.6801        .18783E-03   -1.5423    
   7  Prefactor     .10000E-03    1.4899        .28995E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5637        6.8670        .17035E-03   -1.5236    
   9  Prefactor     .10000E-03    5.1812        .17237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5682        11.051        .18786E-03   -1.5280    
  11  Prefactor     22.101        13.949        .85233E-04   -1.4767    
  12  Prefactor     .10000E-03    6.0804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3910        1.3268        .83903E-04   -1.5472    
  14  Prefactor     .10000E-03    17.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5142        7.2681        .25767E-03   -1.5391    
  16  norm          .10000E-03    5.9657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5680        .16267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92103        .22681        .26557E-03   -.95725    
  20  Prefactor     1.1123        .20525        .23581E-03   -.89074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23796e-09
Minuit parameter uncertainties:
  1  0.000183716
  2  41.0684
  3  59.3671
  4  0.00038636
  5  8.85047
  6  3.68049
  7  1.57187e-05
  8  6.86801
  9  4.15761e-06
  10  11.0556
  11  13.9515
  12  4.37897e-05
  13  1.32686
  14  0.000173288
  15  7.27062
  16  4.55235e-05
  17  4.29985e-06
  18  3.06985e-05
  19  0.227045
  20  0.205394
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  5.564e+00  6.868e+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.112e+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:  9.210e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.90
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221235/likelihoodResults_302054401_302313601_4FGL_J1049.8+1429_daily_bin242.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) = 6085.69854177
delta logL = 0.0251813557161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6085.69378477
delta logL = 0.0299383547845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2601       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3861       1.0000          .0000       10.000    
     3 'Normalizat'    .92640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1080       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=   6085.694     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      240 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2603        7.7698        .16044E-03   -.34658E-03
   2  Index         2.3863        .80791        .10993E-01   -.54748E-04
   3  Normalizat    .92640        .21153        .26487E-03    .46871E-04
   4  Prefactor     1.1080        .20387        .23618E-03    .60409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.26028
  Index      = 2.3863
  Normalizat = 0.926397
  Prefactor  = 1.10803
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.694     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2603        7.6799        .64175E-05   -1.5208    
   2  Index         2.3863        .79856        .43970E-03   -.55006    
   3  Normalizat    .92640        .21174        .10595E-04   -.95539    
   4  Prefactor     1.1080        .20401        .94473E-05   -.89210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97164e-10
Minuit parameter uncertainties:
  1  7.68106
  2  0.803312
  3  0.211926
  4  0.204155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221235': 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) = 6085.69378475
delta logL = 0.0299383764059

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  6.260e+00  7.681e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.386e+00  8.033e-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.108e+00  2.042e-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:  9.264e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.90
Ra Dec: 162.467 14.483

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/221235/cmap_HighResolution_302054401_302313601_4FGL_J1049.8+1429_daily_bin242.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-02 17:07:55.143802', job_id='221235', GAL2='1.11', fit_tolerance='1e-08', EG2='0.93', EG='0.92', time_epoch_completed='1630627675.14', return_code2='0', ts='0.90', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.99e-02', ts2='0.95', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='242' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:07:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 221235: <4FGL_J1049.8+1429_daily_bin242> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin242> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 16:56:05 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 16:57:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 16:57:18 2021
Terminated at Thu Sep  2 17:07:55 2021
Results reported at Thu Sep  2 17:07:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin242 162.467 14.4835 302054401 302313601 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 :                                   480.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            710 sec.

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

