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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1358
RA = 162.467, Dec = 14.4835
tmin = 591321601, tmax = 591580801
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='233007', job_status='RUN', time_executed='2021-09-02 17:36:20.787611', time_epoch_executed='1630629380.79' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233007

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233007/ft1_4FGL_J1049.8+1429_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233007/ft2_4FGL_J1049.8+1429_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233007/ft1_4FGL_J1049.8+1429_daily_bin1358.fits outfile=/scratch/kocevski/233007/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1358.fits ra=162.467 dec=14.4835 rad=12.0 tmin=591321601.0 tmax=591580801.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 2.89
user 2.70
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233007/ft1_filtered_4FGL_J1049.8+1429_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/233007/ft2_4FGL_J1049.8+1429_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/233007/ltcube_591321601_591580801_4FGL_J1049.8+1429_daily_bin1358.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/233007/ft2_4FGL_J1049.8+1429_daily_bin1358.fits
.....................!
real 15.63
user 15.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233007/ft1_filtered_4FGL_J1049.8+1429_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/233007/ft2_4FGL_J1049.8+1429_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/233007/ltcube_591321601_591580801_4FGL_J1049.8+1429_daily_bin1358.fits outfile=/scratch/kocevski/233007/expmap_591321601_591580801_4FGL_J1049.8+1429_daily_bin1358.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/233007/ltcube_591321601_591580801_4FGL_J1049.8+1429_daily_bin1358.fits
.....................!
real 192.82
user 188.20
sys 4.04

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/233007/ft1_filtered_4FGL_J1049.8+1429_daily_bin1358.fits scfile=/scratch/kocevski/233007/ft2_4FGL_J1049.8+1429_daily_bin1358.fits outfile=/scratch/kocevski/233007/cmap_591321601_591580801_4FGL_J1049.8+1429_daily_bin1358.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233007/ft1_filtered_4FGL_J1049.8+1429_daily_bin1358.fits scfile=/scratch/kocevski/233007/ft2_4FGL_J1049.8+1429_daily_bin1358.fits outfile=/scratch/kocevski/233007/cmap_HighResolution_591321601_591580801_4FGL_J1049.8+1429_daily_bin1358.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52076       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5747       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2782       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9111       1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7630       1.0000         .10000E-03   10000.    
    16 'norm      '    .86635E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.576       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99465       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3491       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=   6304.634     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2087 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.913       -.59532E-07** at limit **
   2  Prefactor     .10000E-03    70.172       -.45652E-06** at limit **
   3  Prefactor     .10000E-03    42.346        .25353E-06** at limit **
   4  Prefactor     6.9568        21.875       -.22640E-06   -.49063E-05
   5  Prefactor     .10000E-03    3.3464        .18065E-06** at limit **
   6  Prefactor     .10000E-03    2.2887        .26496E-06** at limit **
   7  Prefactor     .51834        1.2598        .43505E-07    .21779E-05
   8  Prefactor     .10000E-03    8.5835        .20324E-07** at limit **
   9  Prefactor     .10000E-03    14.926        .10064E-05** at limit **
  10  Prefactor     5.5761        7.7407       -.10531E-05    .81280E-05
  11  Prefactor     1.2810        10.072        .44162E-05    .62322E-03
  12  Prefactor     .10000E-03    15.254        .10191E-06** at limit **
  13  norm          1.9100        1.8441        .68313E-06    .12973E-02
  14  Prefactor     50.116        34.419        .62291E-06    .14336E-03
  15  Prefactor     2.7620        6.1686       -.13208E-06    .51579E-04
  16  norm          .10542E-03    20.725       -.81618E-05** at limit **
  17  Prefactor     .10000E-03    5.7842       -.13442E-06** at limit **
  18  Prefactor     24.633        52.665        .77151E-05    .19318E-03
  19  Normalizat    .99454        .19659        .15748E-05    .47614E-03
  20  Prefactor     1.3491        .18744       -.18616E-06    .64356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.95683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.518339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57608
  Prefactor  = 1.28096
  Prefactor  = 0.0001
  norm       = 1.91005
  Prefactor  = 50.1164
  Prefactor  = 2.76201
  norm       = 0.000105416
  Prefactor  = 0.0001
  Prefactor  = 24.633
  Normalizat = 0.994538
  Prefactor  = 1.34915
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.634     FROM HESSE     STATUS=OK           295 CALLS     2382 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9568        21.865        .15224E-03   -1.5180    
   5  Prefactor     .10000E-03    3.3950        .14167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3037        .11709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .51834        1.0451        .13228E-02   -1.5564    
   8  Prefactor     .10000E-03    8.7930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5761        7.7740        .17015E-03   -1.5236    
  11  Prefactor     1.2810        10.608        .19641E-02   -1.5482    
  12  Prefactor     .10000E-03    15.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9100        1.8385        .99945E-04   -1.5432    
  14  Prefactor     50.116        34.340        .56638E-04   -1.4291    
  15  Prefactor     2.7620        6.1499        .24486E-03   -1.5376    
  16  norm          .10542E-03    13.414        .75864E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.633        53.814        .80804E-04   -1.4715    
  19  Normalizat    .99454        .22722        .27820E-03   -.93214    
  20  Prefactor     1.3491        .22059        .24293E-03   -.81857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59492e-09
Minuit parameter uncertainties:
  1  1.85755e-05
  2  0.000368135
  3  4.25064e-05
  4  21.89
  5  1.0001e-05
  6  7.75581e-06
  7  1.04512
  8  7.54369e-05
  9  3.40965e-05
  10  7.77538
  11  7.37414
  12  3.15174e-05
  13  1.83858
  14  34.3534
  15  6.15133
  16  0.0170509
  17  1.45299e-05
  18  53.9202
  19  0.227436
  20  0.220743
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  7.544e-05  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.349e+00  2.207e-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.945e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 9.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233007/likelihoodResults_591321601_591580801_4FGL_J1049.8+1429_daily_bin1358.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): 102
logL (Free Index) = 6304.63415228
delta logL = -0.00054259621993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6304.63361181
delta logL = -2.12948270928e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14583E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5517       1.0000          .0000       10.000    
     3 'Normalizat'    .99463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3491       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=   6304.634     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      259 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    120.16        .36285E-02** at limit **
   2  Index         2.2337        8.7158        .50000        .60206E-06
   3  Normalizat    .99454        .14630E-01    .27820E-03    .12004E-02
   4  Prefactor     1.3491        .14659E-01    .24293E-03    .14758E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23368
  Normalizat = 0.99454
  Prefactor  = 1.34915
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.634     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    555.62        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2337        6.6219        .50000       -.58628    
   3  Normalizat    .99454        .32853E-01    .55640E-04   -.93214    
   4  Prefactor     1.3491        .32918E-01    .48586E-04   -.81857    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.51064e-09
Minuit parameter uncertainties:
  1  0.000584149
  2  599.062
  3  0.0328541
  4  0.0329186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233007': 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): 102
logL (Free Index) = 6304.6336078
delta logL = 1.88152171177e-06

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  5.841e-04  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.234e+00  5.991e+02  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.349e+00  3.292e-02  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.945e-01  3.285e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/233007/cmap_HighResolution_591321601_591580801_4FGL_J1049.8+1429_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', job_status='DONE', photon_flux_upper_limit='9.85e-08', time_completed='2021-09-02 17:46:12.588241', job_id='233007', GAL2='1.35', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630629972.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='1.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1358' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 233007: <4FGL_J1049.8+1429_daily_bin1358> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1358> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 17:31:48 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:33: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 17:33:18 2021
Terminated at Thu Sep  2 17:46:13 2021
Results reported at Thu Sep  2 17:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1358 162.467 14.4835 591321601 591580801 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 :                                   591.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            865 sec.

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

