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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1206
RA = 327.444, Dec = 19.2859
tmin = 551923201, tmax = 552182401
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='991297', job_status='RUN', time_executed='2021-09-27 18:42:55.595433', time_epoch_executed='1632793375.6' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991297/ft1_4FGL_J2149.7+1917_daily_bin1206.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991297/ft1_4FGL_J2149.7+1917_daily_bin1206.fits outfile=/scratch/kocevski/991297/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1206.fits ra=327.444 dec=19.2859 rad=12.0 tmin=551923201.0 tmax=552182401.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.02
user 2.74
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.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/991297/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1206.fits evtable="EVENTS" outfile="/scratch/kocevski/991297/ft1_filtered_4FGL_J2149.7+1917_daily_bin1206.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.42
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991297/ft1_filtered_4FGL_J2149.7+1917_daily_bin1206.fits" evtable="EVENTS" scfile=/scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits sctable="SC_DATA" outfile=/scratch/kocevski/991297/ltcube_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.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/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits
.....................!
real 10.70
user 10.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991297/ft1_filtered_4FGL_J2149.7+1917_daily_bin1206.fits evtable="EVENTS" scfile=/scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits sctable="SC_DATA" expcube=/scratch/kocevski/991297/ltcube_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.fits outfile=/scratch/kocevski/991297/expmap_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.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/991297/ltcube_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.fits
.....................!
real 153.56
user 148.18
sys 5.12

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 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 161 point sources and 1 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 J2149.7+1917 @ 327.444 19.2859

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/991297/ft1_filtered_4FGL_J2149.7+1917_daily_bin1206.fits scfile=/scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits outfile=/scratch/kocevski/991297/cmap_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.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=327.444 yref=19.2859 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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991297/ft1_filtered_4FGL_J2149.7+1917_daily_bin1206.fits scfile=/scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits outfile=/scratch/kocevski/991297/cmap_HighResolution_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.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=327.444 yref=19.2859 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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/991297/ft1_filtered_4FGL_J2149.7+1917_daily_bin1206.fits evtable="EVENTS" scfile=/scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991297/Model_4FGL_J2149.7+1917_daily_bin1206.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
Working on...
/scratch/kocevski/991297/ft1_filtered_4FGL_J2149.7+1917_daily_bin1206.fits.....................!
real 55.32
user 54.16
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991297/ft1_filtered_4FGL_J2149.7+1917_daily_bin1206.fits', '/scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits', expMap='/scratch/kocevski/991297/expmap_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.fits', expCube='/scratch/kocevski/991297/ltcube_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991297/Model_4FGL_J2149.7+1917_daily_bin1206.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.7+1917'

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.294e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/991297/ft1_filtered_4FGL_J2149.7+1917_daily_bin1206.fits
Spacecraft file(s): /scratch/kocevski/991297/ft2_4FGL_J2149.7+1917_daily_bin1206.fits
Exposure map: /scratch/kocevski/991297/expmap_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.fits
Exposure cube: /scratch/kocevski/991297/ltcube_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991297/Model_4FGL_J2149.7+1917_daily_bin1206.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) = 4431.36050402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.8483       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6528       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.275       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.9294       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13617E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8755       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.432       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25125E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7911       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.646       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .31257       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4431.328     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1987 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.478        .17656E-04** at limit **
   2  Prefactor     .10277E-03    74.352       -.46708E-04** at limit **
   3  Prefactor     .10068E-03    29.246       -.16313E-05** at limit **
   4  Prefactor     .10000E-03    26.251       -.52635E-05** at limit **
   5  Prefactor     .10059E-03    30.503       -.32829E-04** at limit **
   6  norm          6.8468        6.2690       -.10283E-05    .57261E-04
   7  Prefactor     7.6484        8.0964        .11398E-04    .16456E-03
   8  Prefactor     17.269        1.9349        .13681E-05   -.99743E-05
   9  Prefactor     .10001E-03    108.33        .10401E-03** at limit **
  10  norm          8.9304        5.1583        .10912E-05   -.18999E-03
  11  Prefactor     .10352E-03    137.28       -.12072E-03** at limit **
  12  norm          4.8744        2.8833        .10300E-05   -.18053E-03
  13  Prefactor     46.427        1.8012       -.14800E-05    .10950E-02
  14  Prefactor     .10002E-03    2.2918       -.13942E-04** at limit **
  15  norm          .10000E-03    1.0177        .88792E-06** at limit **
  16  Prefactor     1.7285        5.0623       -.50480E-05   -.19345E-03
  17  norm          .10000E-03    3.1732       -.33236E-06** at limit **
  18  Prefactor     .10000E-03    5.2937        .19038E-05** at limit **
  19  Prefactor     79.646        1.1172        .38626E-06   -.64302E-03
  20  Prefactor     .10000E-03    13.166       -.24312E-05** at limit **
  21  Normalizat    .31274        .35296       -.10106E-04   -.34834E-04
  22  Prefactor     1.0300        .16139        .75573E-06   -.10852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000102769
  Prefactor  = 0.000100681
  Prefactor  = 0.0001
  Prefactor  = 0.000100593
  norm       = 6.84681
  Prefactor  = 7.64842
  Prefactor  = 17.2694
  Prefactor  = 0.000100009
  norm       = 8.93044
  Prefactor  = 0.000103516
  norm       = 4.87445
  Prefactor  = 46.427
  Prefactor  = 0.00010002
  norm       = 0.0001
  Prefactor  = 1.72847
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.6459
  Prefactor  = 0.0001
  Normalizat = 0.31274
  Prefactor  = 1.03
 **********
 **   18 **HESSE 
 **********

 FCN=   4431.328     FROM HESSE     STATUS=OK           384 CALLS     2371 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10277E-03    182.22        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10068E-03    57.460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.243        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10059E-03    53.548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.8468        6.2724        .38329E-02   -1.5185    
   7  Prefactor     7.6484        8.8884        .36240E-02   -1.5155    
   8  Prefactor     17.269        16.575        .24091E-02   -1.4877    
   9  Prefactor     .10001E-03    120.46        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.9304        6.8722        .33533E-02   -1.5110    
  11  Prefactor     .10352E-03    228.01        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8744        2.9670        .45543E-02   -1.5266    
  13  Prefactor     46.427        84.840        .14711E-02   -1.4344    
  14  Prefactor     .10002E-03    303.52        .10732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .64841        .28505E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7285        149.28        .78131E-02   -1.5445    
  17  norm          .10000E-03    3.1445        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2720        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     79.646        381.88        .11250E-02   -1.3921    
  20  Prefactor     .10000E-03    13.112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .31274        .45318        .14091       -1.2209    
  22  Prefactor     1.0300        .18795        .41262E-01   -.91736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19932e-07
Minuit parameter uncertainties:
  1  0.000699061
  2  0.0450591
  3  0.0125245
  4  7.99682e-05
  5  0.0112757
  6  6.27301
  7  8.88994
  8  16.5793
  9  0.00202921
  10  6.87284
  11  0.056842
  12  2.96713
  13  85.0614
  14  0.00491738
  15  4.26003e-06
  16  32.209
  17  8.28771e-06
  18  3.73033e-05
  19  352.514
  20  3.79163e-05
  21  0.458645
  22  0.188069
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  4.643e+01  8.506e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.030e+00  1.881e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  3.127e-01  4.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 327.444 19.286
Photon Flux Upper Limit: 2.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991297/likelihoodResults_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.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) = 4430.90759604
delta logL = 0.420047570597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4430.85106632
delta logL = 0.476577299416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.309       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6751       1.0000          .0000       10.000    
     3 'Normalizat'    .22767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   4430.851     FROM MIGRAD    STATUS=FAILED        80 CALLS      276 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.307        482.12        .10588E-03   -.11050E-02
   2  Index         3.6769        6.8356        .48164E-02   -.52045E-03
   3  Normalizat    .22735        .37075        .72278E-03   -.17947E-03
   4  Prefactor     1.0566        .18388        .16228E-03   -.64555E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4430.851     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      366 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.307        482.12        .33443E-03   -.11050E-02
   2  Index         3.6769        6.8356        .96047E-03   -.52045E-03
   3  Normalizat    .22735        .37075        .54560E-03   -.17947E-03
   4  Prefactor     1.0566        .18388        .15625E-03   -.64555E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4430.851     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      393 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.304        40.858        .21177E-04   -.13068E-02
   2  Index         3.6770        1.5609        .19265E-03   -.42127E-03
   3  Normalizat    .22735        .35543        .28911E-04   -.17617E-03
   4  Prefactor     1.0566        .16423        .32455E-04   -.63843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3043
  Index      = 3.67703
  Normalizat = 0.227348
  Prefactor  = 1.05665
 **********
 **   18 **HESSE 
 **********

 FCN=   4430.851     FROM HESSE     STATUS=OK            23 CALLS      416 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.304        39.945        .42354E-05   -1.4951    
   2  Index         3.6770        1.5270        .38531E-04   -.26778    
   3  Normalizat    .22735        .35562        .57822E-05   -1.2747    
   4  Prefactor     1.0566        .16425        .64911E-05   -.90864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75414e-09
Minuit parameter uncertainties:
  1  40.0196
  2  1.55375
  3  0.359243
  4  0.164326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991297': 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) = 4430.85105948
delta logL = 0.476584138362

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.430e+01  4.002e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.677e+00  1.554e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.057e+00  1.643e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  2.273e-01  3.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 327.444 19.286
Photon Index (Free Index): 3.68 +/- 1.55
Photon Flux (Free Index): 1.72e-07 +/- 1.56e-07
Energy Flux (Free Index): 2.74e-05 +/- 2.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/991297/cmap_HighResolution_551923201_552182401_4FGL_J2149.7+1917_daily_bin1206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-02', comment='SUCCESS', energy_flux2='2.74e-05', dlogl='4.77e-01', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-27 18:51:04.002406', photon_index_error2='1.55', photon_index2='3.68', ts='0.64', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.96e-07', energy_flux_error2='2.48e-05', EG='0.31', time_epoch_completed='1632793864.0', return_code='0', job_id='991297', GAL2='1.06', EG2='0.23', return_code2='0', photon_flux_error2='1.56e-07', ts2='1.77', photon_index='2.52' WHERE bin_id='1206' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:51:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 991297: <4FGL_J2149.7+1917_daily_bin1206> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1206> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 18:35:20 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:40:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 18:40:06 2021
Terminated at Mon Sep 27 18:51:05 2021
Results reported at Mon Sep 27 18:51:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1206 327.444 19.2859 551923201 552182401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.7+1917 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   432.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            945 sec.

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

