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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1181
RA = 312.478, Dec = 10.0407
tmin = 545443201, tmax = 545702401
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='163128', job_status='RUN', time_executed='2021-09-25 18:53:55.821949', time_epoch_executed='1632621235.82' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163128

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163128/ft1_4FGL_J2049.9+1002_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163128/ft1_4FGL_J2049.9+1002_daily_bin1181.fits outfile=/scratch/kocevski/163128/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1181.fits ra=312.478 dec=10.0407 rad=12.0 tmin=545443201.0 tmax=545702401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.64
user 3.40
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.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/163128/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1181.fits evtable="EVENTS" outfile="/scratch/kocevski/163128/ft1_filtered_4FGL_J2049.9+1002_daily_bin1181.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163128/ft1_filtered_4FGL_J2049.9+1002_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/163128/ltcube_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.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/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits
.....................!
real 19.69
user 19.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163128/ft1_filtered_4FGL_J2049.9+1002_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/163128/ltcube_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.fits outfile=/scratch/kocevski/163128/expmap_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.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/163128/ltcube_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.fits
.....................!
real 162.22
user 157.63
sys 3.94

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
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 201 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2049.9+1002 @ 312.478 10.0407

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/163128/ft1_filtered_4FGL_J2049.9+1002_daily_bin1181.fits scfile=/scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits outfile=/scratch/kocevski/163128/cmap_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.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=312.478 yref=10.0407 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163128/ft1_filtered_4FGL_J2049.9+1002_daily_bin1181.fits scfile=/scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits outfile=/scratch/kocevski/163128/cmap_HighResolution_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.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=312.478 yref=10.0407 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.51
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163128/ft1_filtered_4FGL_J2049.9+1002_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163128/Model_4FGL_J2049.9+1002_daily_bin1181.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/163128/ft1_filtered_4FGL_J2049.9+1002_daily_bin1181.fits........................!
real 27.54
user 26.19
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163128/ft1_filtered_4FGL_J2049.9+1002_daily_bin1181.fits', '/scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits', expMap='/scratch/kocevski/163128/expmap_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.fits', expCube='/scratch/kocevski/163128/ltcube_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163128/Model_4FGL_J2049.9+1002_daily_bin1181.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2049.9+1002'

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.360e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/163128/ft1_filtered_4FGL_J2049.9+1002_daily_bin1181.fits
Spacecraft file(s): /scratch/kocevski/163128/ft2_4FGL_J2049.9+1002_daily_bin1181.fits
Exposure map: /scratch/kocevski/163128/expmap_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.fits
Exposure cube: /scratch/kocevski/163128/ltcube_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163128/Model_4FGL_J2049.9+1002_daily_bin1181.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 907.072070735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 905.944440233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16045E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .83733E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14361E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .99649E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11048       1.0000         .10000E-03   10000.    
     7 'norm      '    .31982E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8412       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .94428E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2167       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74116E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20164       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    182.32       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.650       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6703       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27216E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .75256       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .41783E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .37189       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81584       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   905.9018     FROM MIGRAD    STATUS=CONVERGED    231 CALLS      516 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.921        .14915E-04** at limit **
   2  norm          .10000E-03    180.74       -.28202E-05** at limit **
   3  Prefactor     .10000E-03    29.421        .49155E-05** at limit **
   4  Prefactor     .10000E-03    35.782       -.14825E-04** at limit **
   5  norm          .10000E-03    1.2859       -.11660E-05** at limit **
   6  Prefactor     .10000E-03    81.631       -.19714E-04** at limit **
   7  norm          .10000E-03    20.783        .74020E-05** at limit **
   8  norm          .18311E-03    1186.0       -.67241E-04** at limit **
   9  Prefactor     .10000E-03    255.31       -.43120E-06** at limit **
  10  Prefactor     2.2167        1.0280         .0000         .0000    
  11  Prefactor     .10000E-03    120.25        .40819E-04** at limit **
  12  Prefactor     .10000E-03    295.75        .28587E-04** at limit **
  13  Prefactor     .10009E-03    346.64       -.78495E-04** at limit **
  14  Prefactor     60.910        189.22        .11310E-04    .18585E-01
  15  Prefactor     167.12        140.20       -.15717E-04    .43601E-01
  16  Prefactor     153.92        369.85        .81477E-04    .47344E-02
  17  norm          3.6703        1.0096         .0000         .0000    
  18  Prefactor     .10000E-03    60.012        .88788E-04** at limit **
  19  Prefactor     .10000E-03    135.71       -.54438E-04** at limit **
  20  Prefactor     .25219E-03    1726.3        .18940E-03** at limit **
  21  Normalizat    .21960        1.0011       -.11526E-03   -.11169E-04
  22  Prefactor     .84703        .26103        .21221E-04   -.46973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000183107
  Prefactor  = 0.0001
  Prefactor  = 2.21667
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100091
  Prefactor  = 60.9103
  Prefactor  = 167.116
  Prefactor  = 153.924
  norm       = 3.67025
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000252191
  Normalizat = 0.219604
  Prefactor  = 0.847034
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   905.9018     FROM HESSE     STATUS=FAILED        45 CALLS      561 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.798        .10209E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    180.59        .91989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.529        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.928        .90728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    81.510        .95611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.932        .10681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .18311E-03    1184.5        .60308E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    254.84        .94846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     565.54        563.20         .0000       -1.5410    
  11  Prefactor     .10000E-03    .22029        .40819E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .24925        .28587E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    .20571       -.78495E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     60.910        1.0104        .11310E-04   -1.4145    
  15  Prefactor     167.12        .95814       -.15717E-04   -1.3115    
  16  Prefactor     153.92        1.6404        .81477E-04   -1.3220    
  17  norm          3.6703        1.0096         .0000       -1.5325    
  18  Prefactor     .10000E-03    .20968        .88788E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .37588       -.54438E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .25219E-03    .21298        .18940E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .21960        .52735       -.11526E-03   -1.2801    
  22  Prefactor     .84703        1.1840        .21221E-04   -.98017    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.10657e-09
Minuit parameter uncertainties:
  1  6.33878e-05
  2  3.86565e-05
  3  2.12068e-05
  4  5.20516e-05
  5  5.56652e-07
  6  6.8186e-05
  7  1.54945e-05
  8  0.640598
  9  2.92633e-05
  10  1.02802
  11  7.47489e-06
  12  2.27345e-05
  13  0.000273341
  14  1.01043
  15  0.958145
  16  1.64035
  17  1.00959
  18  2.44745e-05
  19  2.3727e-05
  20  0.0113865
  21  0.540063
  22  1.22299
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 905.901828297

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  1.549e-05  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.470e-01  1.223e+00  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  2.196e-01  5.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 312.478 10.041
Photon Flux Upper Limit: 5.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.76e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163128/likelihoodResults_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.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) = 905.902052194
delta logL = -0.0002238961589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 905.90183181
delta logL = -3.51260757725e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10253E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8909       1.0000          .0000       5.0000    
     3 'Normalizat'    .21960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84704       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   905.9018     FROM MIGRAD    STATUS=FAILED       100 CALLS      270 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    1379.7        .87923E-02** at limit **
   2  alpha         2.1541        3.9124        .20000        .11404E-07
   3  Normalizat    .21960        .15363        .78177E-03   -.73471E-04
   4  Prefactor     .84703        .46990E-01    .12427E-03   -.46743E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   905.9018     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      431 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    1379.7        .93124E-03** at limit **
   2  alpha         2.1541        3.9124        .15624E-05    .11404E-07
   3  Normalizat    .21960        .15363        .46761E-06   -.73471E-04
   4  Prefactor     .84703        .46990E-01    .57234E-07   -.46743E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   905.9018     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      459 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    21.584        .13592E-02** at limit **
   2  alpha         2.1668        2.8596        .80000E-02    .62883E-07
   3  Normalizat    .21960        .73465        .31271E-04   -.73293E-04
   4  Prefactor     .84703        .23525        .24854E-04   -.46611E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  alpha      = 2.16676
  Normalizat = 0.219601
  Prefactor  = 0.847032
 **********
 **   18 **HESSE 
 **********

 FCN=   905.9018     FROM HESSE     STATUS=OK            23 CALLS      482 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    21.362        .27185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1668        3.5784        .16000E-02   -.13369    
   3  Normalizat    .21960        .73476        .62542E-05   -1.2801    
   4  Prefactor     .84703        .23527        .49708E-05   -.98017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17439e-09
Minuit parameter uncertainties:
  1  0.00082664
  2  782.172
  3  0.771565
  4  0.235555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163128': 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) = 905.901828251
delta logL = 4.69152610094e-08

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  8.266e-04  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  2.167e+00  7.822e+02  0.000e+00  5.000e+00 ( 1.000e+00)
409         beta:  1.463e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.470e-01  2.356e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  2.196e-01  7.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 312.478 10.041

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/163128/cmap_HighResolution_545443201_545702401_4FGL_J2049.9+1002_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-04', job_status='DONE', photon_flux_upper_limit='5.55e-07', time_completed='2021-09-25 18:59:20.104486', job_id='163128', GAL2='0.85', fit_tolerance='1e-08', EG2='0.22', EG='0.22', time_epoch_completed='1632621560.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.85', dlogl='4.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1181' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:59:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 163128: <4FGL_J2049.9+1002_daily_bin1181> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1181> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep 25 18:50:20 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:50:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 18:50:39 2021
Terminated at Sat Sep 25 18:59:20 2021
Results reported at Sat Sep 25 18:59:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1181 312.478 10.0407 545443201 545702401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2049.9+1002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   320.45 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             226.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            540 sec.

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

