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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin756
RA = 327.424, Dec = 3.3959
tmin = 435283201, tmax = 435542401
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='980790', job_status='RUN', time_executed='2021-09-27 18:00:38.324201', time_epoch_executed='1632790838.32' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980790/ft1_4FGL_J2149.6+0323_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980790/ft2_4FGL_J2149.6+0323_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980790/ft1_4FGL_J2149.6+0323_daily_bin756.fits outfile=/scratch/kocevski/980790/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin756.fits ra=327.424 dec=3.3959 rad=12.0 tmin=435283201.0 tmax=435542401.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 4.28
user 3.96
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/980790/ft2_4FGL_J2149.6+0323_daily_bin756.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/980790/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/980790/ft1_filtered_4FGL_J2149.6+0323_daily_bin756.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980790/ft1_filtered_4FGL_J2149.6+0323_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/980790/ft2_4FGL_J2149.6+0323_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/980790/ltcube_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.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/980790/ft2_4FGL_J2149.6+0323_daily_bin756.fits
.....................!
real 10.52
user 10.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980790/ft1_filtered_4FGL_J2149.6+0323_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/980790/ft2_4FGL_J2149.6+0323_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/980790/ltcube_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.fits outfile=/scratch/kocevski/980790/expmap_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.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/980790/ltcube_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.fits
.....................!
real 158.00
user 152.81
sys 4.86

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/980790/ft1_filtered_4FGL_J2149.6+0323_daily_bin756.fits scfile=/scratch/kocevski/980790/ft2_4FGL_J2149.6+0323_daily_bin756.fits outfile=/scratch/kocevski/980790/cmap_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.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.53
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980790/ft1_filtered_4FGL_J2149.6+0323_daily_bin756.fits scfile=/scratch/kocevski/980790/ft2_4FGL_J2149.6+0323_daily_bin756.fits outfile=/scratch/kocevski/980790/cmap_HighResolution_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.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.49
user 0.33
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/980790/ft1_filtered_4FGL_J2149.6+0323_daily_bin756.fits', '/scratch/kocevski/980790/ft2_4FGL_J2149.6+0323_daily_bin756.fits', expMap='/scratch/kocevski/980790/expmap_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.fits', expCube='/scratch/kocevski/980790/ltcube_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/980790/Model_4FGL_J2149.6+0323_daily_bin756.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/980790/ft1_filtered_4FGL_J2149.6+0323_daily_bin756.fits
Spacecraft file(s): /scratch/kocevski/980790/ft2_4FGL_J2149.6+0323_daily_bin756.fits
Exposure map: /scratch/kocevski/980790/expmap_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.fits
Exposure cube: /scratch/kocevski/980790/ltcube_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/980790/Model_4FGL_J2149.6+0323_daily_bin756.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) = 10929.2589649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59891       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.791       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11876E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.045       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    99.940       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6583       1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1352       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2970       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.116       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.310       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .27427E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3345       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69306       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=   10929.25     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2717 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.689       -.73447E-05** at limit **
   2  Prefactor     .60842        4.9656       -.13012E-05    .24830E-04
   3  Prefactor     .10000E-03    14.765       -.10301E-05** at limit **
   4  Prefactor     38.775        42.245       -.12497E-04    .14959E-04
   5  Prefactor     .10000E-03    3.4839       -.16276E-07** at limit **
   6  Prefactor     .10000E-03    33.748        .24683E-05** at limit **
   7  Prefactor     .10000E-03    1.6829       -.38565E-07** at limit **
   8  Prefactor     .10000E-03    12.577        .14525E-05** at limit **
   9  Prefactor     1.2499        1.4945        .17974E-06   -.59611E-03
  10  Prefactor     21.027        25.683       -.42091E-05   -.10140E-04
  11  Prefactor     .10000E-03    14.880       -.14551E-05** at limit **
  12  Prefactor     .10000E-03    21.878        .64551E-05** at limit **
  13  Prefactor     99.967        43.104        .13682E-04    .44242E-04
  14  norm          1.6589        1.7404       -.69468E-06   -.17108E-02
  15  norm          .10000E-03    6.2739       -.25739E-06** at limit **
  16  Prefactor     4.1352        4.3413       -.15864E-05   -.16620E-03
  17  Prefactor     .10000E-03    4.1941       -.56614E-07** at limit **
  18  Prefactor     5.2975        14.567       -.18713E-05   -.73690E-04
  19  Prefactor     16.122        12.379       -.24812E-06    .51671E-05
  20  Prefactor     .10000E-03    10.595       -.22552E-06** at limit **
  21  Prefactor     29.313        21.739       -.10603E-05    .68442E-05
  22  Prefactor     .10002E-03    6.9093       -.76423E-07** at limit **
  23  Normalizat    1.3339        .17924        .26118E-06    .15579E-03
  24  Prefactor     .69339        .83404E-01    .39399E-06    .20196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.608421
  Prefactor  = 0.0001
  Prefactor  = 38.7749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.24988
  Prefactor  = 21.0273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.9667
  norm       = 1.65886
  norm       = 0.0001
  Prefactor  = 4.13518
  Prefactor  = 0.0001
  Prefactor  = 5.29747
  Prefactor  = 16.1216
  Prefactor  = 0.0001
  Prefactor  = 29.3127
  Prefactor  = 0.000100017
  Normalizat = 1.33389
  Prefactor  = 0.693387
 **********
 **   18 **HESSE 
 **********

 FCN=   10929.25     FROM HESSE     STATUS=OK           407 CALLS     3124 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .60842        29.013        .44583E-02   -1.5552    
   3  Prefactor     .10000E-03    15.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.775        42.374        .64354E-04   -1.4462    
   5  Prefactor     .10000E-03    3.4895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7066        .13236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.120        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2499        1.4514        .12947E-03   -1.5484    
  10  Prefactor     21.027        25.653        .87310E-04   -1.4791    
  11  Prefactor     .10000E-03    14.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     99.967        43.163        .40214E-04   -1.3705    
  14  norm          1.6589        1.7442        .13397E-03   -1.5450    
  15  norm          .10000E-03    6.2909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1352        4.3393        .19822E-03   -1.5301    
  17  Prefactor     .10000E-03    4.2078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2975        14.569        .17463E-03   -1.5248    
  19  Prefactor     16.122        12.379        .99768E-04   -1.4905    
  20  Prefactor     .10000E-03    10.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.313        21.743        .74004E-04   -1.4625    
  22  Prefactor     .10002E-03    7.9975        .82311E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3339        .21701        .28957E-03   -.82560    
  24  Prefactor     .69339        .10095        .19104E-03   -1.0379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22115e-10
Minuit parameter uncertainties:
  1  0.000109432
  2  8.40652
  3  5.98828e-05
  4  42.4064
  5  7.195e-07
  6  0.000192307
  7  3.62728e-06
  8  5.38618e-05
  9  1.45149
  10  25.6664
  11  2.69337e-06
  12  1.58686e-05
  13  43.1769
  14  1.74421
  15  6.46034e-05
  16  4.33967
  17  8.42195e-06
  18  14.5787
  19  12.3807
  20  1.64699e-05
  21  21.7488
  22  0.000743017
  23  0.217163
  24  0.100981
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  4.135e+00  4.340e+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

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  6.934e-01  1.010e-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.334e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.51
Ra Dec: 327.424 3.396
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.82e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 8.88e-06 +/- 9.31e-06

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

Saving results to:
/scratch/kocevski/980790/likelihoodResults_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.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) = 10929.0652734
delta logL = 0.188892792075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10929.0572884
delta logL = 0.196877852437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7183       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6637       1.0000          .0000       10.000    
     3 'Normalizat'    1.3436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69118       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=   10929.06     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      219 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7215        223.18        .46312E-02   -.82894E-04
   2  Index         1.6639        5.3793        .28174       -.20502E-04
   3  Normalizat    1.3436        .12767        .65271E-01    .14849E-04
   4  Prefactor     .69117        .39971E-01    .42284E-01    .21993E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.72153
  Index      = 1.66388
  Normalizat = 1.34361
  Prefactor  = 0.691169
 **********
 **   18 **HESSE 
 **********

 FCN=   10929.06     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7215        5.0753        .18525E-03   -1.5273    
   2  Index         1.6639        .74663        .14535E-01   -.73048    
   3  Normalizat    1.3436        .20058        .28873E-03   -.82274    
   4  Prefactor     .69117        .99214E-01    .19134E-03   -1.0387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78454e-10
Minuit parameter uncertainties:
  1  5.07573
  2  0.751726
  3  0.2007
  4  0.0992392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980790': 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) = 10929.0572882
delta logL = 0.196878059949

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  4.722e+00  5.076e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.664e+00  7.517e-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:  6.912e-01  9.924e-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.344e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.91
Ra Dec: 327.424 3.396
Photon Index (Free Index): 1.66 +/- 0.75
Photon Flux (Free Index): 8.62e-09 +/- 1.43e-08
Energy Flux (Free Index): 1.58e-05 +/- 2.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/980790/cmap_HighResolution_435283201_435542401_4FGL_J2149.6+0323_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', comment='SUCCESS', photon_flux='1.82e-08', energy_flux2='1.58e-05', photon_flux_error='1.91e-08', dlogl='1.97e-01', energy_flux='8.88e-06', photon_flux2='8.62e-09', job_status='DONE', time_completed='2021-09-27 18:14:38.802851', photon_index_error2='0.75', photon_index2='1.66', ts='2.51', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='7.02e-08', energy_flux_error2='2.50e-05', EG='1.33', time_epoch_completed='1632791678.8', return_code='0', job_id='980790', GAL2='0.69', EG2='1.34', return_code2='0', energy_flux_error='9.31e-06', photon_flux_error2='1.43e-08', ts2='2.91', photon_index='2.16' WHERE bin_id='756' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:14:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 980790: <4FGL_J2149.6+0323_daily_bin756> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin756> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 18:00:17 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:00:26 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:00:26 2021
Terminated at Mon Sep 27 18:14:39 2021
Results reported at Mon Sep 27 18:14:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin756 327.424 3.3959 435283201 435542401 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 :                                   807.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            862 sec.

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

