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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin720
RA = 327.424, Dec = 3.3959
tmin = 425952001, tmax = 426211201
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='979473', job_status='RUN', time_executed='2021-09-27 17:59:11.714961', time_epoch_executed='1632790751.71' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/979473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/979473/ft1_4FGL_J2149.6+0323_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/979473/ft1_4FGL_J2149.6+0323_daily_bin720.fits outfile=/scratch/kocevski/979473/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin720.fits ra=327.424 dec=3.3959 rad=12.0 tmin=425952001.0 tmax=426211201.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.77
user 3.46
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.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/979473/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin720.fits evtable="EVENTS" outfile="/scratch/kocevski/979473/ft1_filtered_4FGL_J2149.6+0323_daily_bin720.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.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/979473/ft1_filtered_4FGL_J2149.6+0323_daily_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/979473/ltcube_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.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/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits
.....................!
real 15.36
user 14.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/979473/ft1_filtered_4FGL_J2149.6+0323_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/979473/ltcube_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.fits outfile=/scratch/kocevski/979473/expmap_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.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/979473/ltcube_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.fits
.....................!
real 194.09
user 187.50
sys 6.13

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2149.6+0323 @ 327.424 3.3959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/979473/ft1_filtered_4FGL_J2149.6+0323_daily_bin720.fits scfile=/scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits outfile=/scratch/kocevski/979473/cmap_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.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.424 yref=3.3959 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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/979473/ft1_filtered_4FGL_J2149.6+0323_daily_bin720.fits scfile=/scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits outfile=/scratch/kocevski/979473/cmap_HighResolution_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.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.424 yref=3.3959 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.59
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/979473/ft1_filtered_4FGL_J2149.6+0323_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/979473/Model_4FGL_J2149.6+0323_daily_bin720.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/979473/ft1_filtered_4FGL_J2149.6+0323_daily_bin720.fits.....................!
real 72.38
user 70.84
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/979473/ft1_filtered_4FGL_J2149.6+0323_daily_bin720.fits', '/scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits', expMap='/scratch/kocevski/979473/expmap_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.fits', expCube='/scratch/kocevski/979473/ltcube_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/979473/Model_4FGL_J2149.6+0323_daily_bin720.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.6+0323'

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.704e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/979473/ft1_filtered_4FGL_J2149.6+0323_daily_bin720.fits
Spacecraft file(s): /scratch/kocevski/979473/ft2_4FGL_J2149.6+0323_daily_bin720.fits
Exposure map: /scratch/kocevski/979473/expmap_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.fits
Exposure cube: /scratch/kocevski/979473/ltcube_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/979473/Model_4FGL_J2149.6+0323_daily_bin720.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) = 6962.51290388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.637       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1787       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18271E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.065       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10208E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11912E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.1672       1.0000         .10000E-03   10000.    
    15 'norm      '    22.145       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2257       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.490       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7186       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9267       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.259       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1677       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0110       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80655       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6962.492     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2728 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.108        .12360E-07** at limit **
   2  Prefactor     .10000E-03    21.146        .51424E-07** at limit **
   3  Prefactor     .10000E-03    8.2869        .20465E-07** at limit **
   4  Prefactor     .10002E-03    66.169       -.66980E-05** at limit **
   5  Prefactor     16.640        15.603        .27784E-06    .33689E-04
   6  Prefactor     .10000E-03    29.682        .32516E-06** at limit **
   7  Prefactor     8.1796        5.9953        .57546E-07   -.78695E-04
   8  Prefactor     5.6494        10.546        .28903E-06   -.37741E-04
   9  Prefactor     .10000E-03    1.2877        .13652E-06** at limit **
  10  Prefactor     38.066        31.406        .42972E-06    .46457E-04
  11  Prefactor     .10014E-03    233.91       -.26433E-04** at limit **
  12  Prefactor     .10003E-03    76.055        .91863E-05** at limit **
  13  Prefactor     .10000E-03    126.72        .71163E-06** at limit **
  14  norm          7.1677        3.2681        .10503E-06   -.21551E-03
  15  norm          22.146        26.222        .22558E-06   -.18961E-04
  16  Prefactor     .10000E-03    3.2993        .16435E-07** at limit **
  17  Prefactor     6.2259        9.7701        .31051E-06    .52431E-04
  18  Prefactor     42.498        26.549        .26967E-06    .16808E-04
  19  Prefactor     9.7317        28.502        .12174E-05    .95177E-04
  20  Prefactor     8.9255        33.970       -.15429E-05   -.40628E-04
  21  Prefactor     46.265        32.001        .42924E-06    .33561E-04
  22  Prefactor     4.1730        11.400        .61066E-05   -.67878E-03
  23  Normalizat    1.0102        .23385       -.15048E-05    .10283E-03
  24  Prefactor     .80683        .10972       -.15848E-06    .92882E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 16.6397
  Prefactor  = 0.0001
  Prefactor  = 8.1796
  Prefactor  = 5.64936
  Prefactor  = 0.0001
  Prefactor  = 38.0661
  Prefactor  = 0.000100143
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  norm       = 7.16768
  norm       = 22.1459
  Prefactor  = 0.0001
  Prefactor  = 6.2259
  Prefactor  = 42.4985
  Prefactor  = 9.73168
  Prefactor  = 8.92549
  Prefactor  = 46.2645
  Prefactor  = 4.17304
  Normalizat = 1.01024
  Prefactor  = 0.80683
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.492     FROM HESSE     STATUS=OK           405 CALLS     3133 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.2935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    68.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.640        15.603        .98195E-04   -1.4892    
   6  Prefactor     .10000E-03    29.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1796        5.9864        .14019E-03   -1.5136    
   8  Prefactor     5.6494        10.525        .16903E-03   -1.5233    
   9  Prefactor     .10000E-03    4.4931        .18206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.066        31.361        .64963E-04   -1.4473    
  11  Prefactor     .10014E-03    256.70        .41498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    79.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    127.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.1677        3.2628        .92534E-04   -1.5172    
  15  norm          22.146        26.212        .85116E-04   -1.4766    
  16  Prefactor     .10000E-03    3.3075        .14798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2259        9.7468        .16089E-03   -1.5209    
  18  Prefactor     42.498        26.535        .61499E-04   -1.4403    
  19  Prefactor     9.7317        27.939        .12854E-03   -1.5084    
  20  Prefactor     8.9255        33.229        .13415E-03   -1.5110    
  21  Prefactor     46.265        31.991        .58951E-04   -1.4347    
  22  Prefactor     4.1730        12.754        .98713E-03   -1.5299    
  23  Normalizat    1.0102        .28096        .33199E-03   -.92688    
  24  Prefactor     .80683        .13231        .18429E-03   -.99477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35407e-09
Minuit parameter uncertainties:
  1  1.90486e-06
  2  1.1075e-05
  3  2.5573e-06
  4  0.00203905
  5  15.6071
  6  8.74997e-05
  7  5.98683
  8  10.5281
  9  3.05354e-05
  10  31.3747
  11  0.0121657
  12  0.00308122
  13  0.000296048
  14  3.26284
  15  26.2255
  16  1.02942e-06
  17  9.74924
  18  26.5426
  19  27.9767
  20  33.2976
  21  32.0032
  22  12.7626
  23  0.281372
  24  0.132364
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.029e-06  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.068e-01  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.010e+00  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.424 3.396
Photon Flux Upper Limit: 6.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/979473/likelihoodResults_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.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) = 6962.49366723
delta logL = -0.00143903066964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6962.49222819
delta logL = 1.06965671876e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1607       1.0000          .0000       10.000    
     3 'Normalizat'    1.0102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6962.492     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.42        .90712E-02** at limit **
   2  Index         2.1650        5.5611        .50000       -.11536E-04
   3  Normalizat    1.0102        .34238E-01    .75026E-01    .19603E-04
   4  Prefactor     .80683        .17269E-01    .43806E-01    .10167E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.165
  Normalizat = 1.01023
  Prefactor  = 0.806831
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.492     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    258.99        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1650        6.5788        .50000       -.60286    
   3  Normalizat    1.0102        .53445E-01    .33199E-03   -.92688    
   4  Prefactor     .80683        .26995E-01    .18429E-03   -.99477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04938e-08
Minuit parameter uncertainties:
  1  5.07132e-07
  2  36.5997
  3  0.0534476
  4  0.0269958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/979473': 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) = 6962.49222818
delta logL = 2.22944436246e-08

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  5.071e-07  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.165e+00  3.660e+01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.068e-01  2.700e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.010e+00  5.345e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.424 3.396

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/979473/cmap_HighResolution_425952001_426211201_4FGL_J2149.6+0323_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2021-09-27 18:11:37.566542', job_id='979473', GAL2='0.81', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632791497.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='720' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:11:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 979473: <4FGL_J2149.6+0323_daily_bin720> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin720> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 27 17:55:17 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 17:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 17:55:33 2021
Terminated at Mon Sep 27 18:11:37 2021
Results reported at Mon Sep 27 18:11:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin720 327.424 3.3959 425952001 426211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.6+0323 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            980 sec.

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

