/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 160 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2149.7+1917_daily_bin50
RA = 327.444, Dec = 19.2859
tmin = 252288001, tmax = 252547201
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='985712', job_status='RUN', time_executed='2021-09-27 18:19:22.048507', time_epoch_executed='1632791962.05' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985712/ft1_4FGL_J2149.7+1917_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985712/ft2_4FGL_J2149.7+1917_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985712/ft1_4FGL_J2149.7+1917_daily_bin50.fits outfile=/scratch/kocevski/985712/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin50.fits ra=327.444 dec=19.2859 rad=12.0 tmin=252288001.0 tmax=252547201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.56
user 2.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985712/ft2_4FGL_J2149.7+1917_daily_bin50.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/985712/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/985712/ft1_filtered_4FGL_J2149.7+1917_daily_bin50.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985712/ft1_filtered_4FGL_J2149.7+1917_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/985712/ft2_4FGL_J2149.7+1917_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/985712/ltcube_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.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/985712/ft2_4FGL_J2149.7+1917_daily_bin50.fits
.....................!
real 16.69
user 16.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985712/ft1_filtered_4FGL_J2149.7+1917_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/985712/ft2_4FGL_J2149.7+1917_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/985712/ltcube_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.fits outfile=/scratch/kocevski/985712/expmap_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.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/985712/ltcube_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.fits
.....................!
real 194.73
user 186.88
sys 5.53

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/985712/ft1_filtered_4FGL_J2149.7+1917_daily_bin50.fits scfile=/scratch/kocevski/985712/ft2_4FGL_J2149.7+1917_daily_bin50.fits outfile=/scratch/kocevski/985712/cmap_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985712/ft1_filtered_4FGL_J2149.7+1917_daily_bin50.fits scfile=/scratch/kocevski/985712/ft2_4FGL_J2149.7+1917_daily_bin50.fits outfile=/scratch/kocevski/985712/cmap_HighResolution_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985712/ft1_filtered_4FGL_J2149.7+1917_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/985712/ft2_4FGL_J2149.7+1917_daily_bin50.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985712/Model_4FGL_J2149.7+1917_daily_bin50.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/985712/ft1_filtered_4FGL_J2149.7+1917_daily_bin50.fits.....................!
real 120.44
user 117.60
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/985712/ft1_filtered_4FGL_J2149.7+1917_daily_bin50.fits', '/scratch/kocevski/985712/ft2_4FGL_J2149.7+1917_daily_bin50.fits', expMap='/scratch/kocevski/985712/expmap_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.fits', expCube='/scratch/kocevski/985712/ltcube_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/985712/Model_4FGL_J2149.7+1917_daily_bin50.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/985712/ft1_filtered_4FGL_J2149.7+1917_daily_bin50.fits
Spacecraft file(s): /scratch/kocevski/985712/ft2_4FGL_J2149.7+1917_daily_bin50.fits
Exposure map: /scratch/kocevski/985712/expmap_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.fits
Exposure cube: /scratch/kocevski/985712/ltcube_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/985712/Model_4FGL_J2149.7+1917_daily_bin50.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) = 7240.30941878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.807       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47545E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.969       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.487       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37511E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.817       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .16683E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7007       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.724       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0443       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.5262       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3824       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .52466       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1255       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.

 FCN=   7240.295     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2385 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.749        36.143       -.45404E-05   -.54544E-03
   2  Prefactor     .10001E-03    153.61       -.10271E-04** at limit **
   3  Prefactor     18.970        17.991        .59968E-06    .74486E-04
   4  Prefactor     .10000E-03    34.559       -.14121E-05** at limit **
   5  Prefactor     .10000E-03    11.342        .46195E-06** at limit **
   6  norm          10.488        6.5389        .33580E-06    .95710E-04
   7  Prefactor     .10079E-03    2.5505       -.12631E-05** at limit **
   8  Prefactor     21.840        11.236        .94768E-07    .48937E-03
   9  Prefactor     .10000E-03    46.428        .25450E-05** at limit **
  10  norm          .10015E-03    1.1975        .29121E-07** at limit **
  11  Prefactor     .10000E-03    38.921        .14723E-05** at limit **
  12  norm          5.7014        2.6809        .13252E-06    .22908E-03
  13  Prefactor     .10000E-03    17.110        .21033E-05** at limit **
  14  Prefactor     41.736        67.346        .21000E-05    .68940E-04
  15  norm          2.0450        1.2393        .72683E-06   -.12807E-03
  16  Prefactor     .10000E-03    12.360       -.67046E-06** at limit **
  17  norm          6.5265        5.8015       -.29481E-07    .21509E-04
  18  Prefactor     .10000E-03    2.6390        .19046E-07** at limit **
  19  Prefactor     .10000E-03    20.612       -.14017E-05** at limit **
  20  Prefactor     4.3818        7.8070        .57971E-05   -.14280E-03
  21  Normalizat    .52461        .29597       -.85445E-05    .64077E-04
  22  Prefactor     1.1255        .12577        .16385E-05    .11617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.749
  Prefactor  = 0.000100014
  Prefactor  = 18.97
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4883
  Prefactor  = 0.000100785
  Prefactor  = 21.8404
  Prefactor  = 0.000100002
  norm       = 0.000100147
  Prefactor  = 0.000100001
  norm       = 5.70141
  Prefactor  = 0.000100001
  Prefactor  = 41.7359
  norm       = 2.04495
  Prefactor  = 0.0001
  norm       = 6.52653
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.3818
  Normalizat = 0.524614
  Prefactor  = 1.12553
 **********
 **   18 **HESSE 
 **********

 FCN=   7240.295     FROM HESSE     STATUS=OK           352 CALLS     2737 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.749        37.481        .58607E-04   -1.4339    
   2  Prefactor     .10001E-03    154.75        .21182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.970        17.967        .91962E-04   -1.4837    
   4  Prefactor     .10000E-03    34.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.488        6.5242        .12373E-03   -1.5060    
   7  Prefactor     .10079E-03    29.876        .25274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.840        11.011        .85754E-04   -1.4773    
   9  Prefactor     .10000E-03    46.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10015E-03    3.5408        .29743E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7014        2.6748        .91518E-04   -1.5230    
  13  Prefactor     .10000E-03    17.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.736        67.162        .62060E-04   -1.4415    
  15  norm          2.0450        1.2381        .34919E-03   -1.5422    
  16  Prefactor     .10000E-03    12.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5265        5.7834        .15709E-03   -1.5197    
  18  Prefactor     .10000E-03    2.6408        .13500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3818        7.9387        .96196E-03   -1.5289    
  21  Normalizat    .52461        .30176        .50087E-03   -1.1129    
  22  Prefactor     1.1255        .13192        .16223E-03   -.88655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60724e-08
Minuit parameter uncertainties:
  1  37.5003
  2  0.00297175
  3  17.972
  4  6.659e-05
  5  5.44909e-05
  6  6.52464
  7  0.00969185
  8  11.0116
  9  0.000598626
  10  0.00144305
  11  0.00032086
  12  2.67485
  13  0.000270667
  14  67.2842
  15  1.23813
  16  0.000105037
  17  5.78391
  18  4.99314e-07
  19  0.000225803
  20  7.94056
  21  0.302709
  22  0.131953
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  2.707e-04  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.126e+00  1.320e-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:  5.246e-01  3.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.444 19.286
Photon Flux Upper Limit: 9.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985712/likelihoodResults_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.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) = 7240.29548066
delta logL = -0.000276748824945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7240.29520415
delta logL = -2.40868757828e-07

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.4189       1.0000          .0000       10.000    
     3 'Normalizat'    .52462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1255       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.

 FCN=   7240.295     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6564.2        .18142E-02** at limit **
   2  Index         2.4355        5.4470        .50000       -.94073E-05
   3  Normalizat    .52461        .16152        .50087E-03   -.40130E-04
   4  Prefactor     1.1255        .75272E-01    .16223E-03    .68676E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.43553
  Normalizat = 0.52461
  Prefactor  = 1.12553
 **********
 **   18 **HESSE 
 **********

 FCN=   7240.295     FROM HESSE     STATUS=OK            29 CALLS      302 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4355        6.2178        .50000       -.53855    
   3  Normalizat    .52461        .27881        .20035E-04   -1.1129    
   4  Prefactor     1.1255        .13017        .64892E-05   -.88655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99509e-10
Minuit parameter uncertainties:
  1  0.000313267
  2  4.44329
  3  0.279552
  4  0.130212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985712': 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) = 7240.29520411
delta logL = -1.9874642021e-07

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.133e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.436e+00  4.443e+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.126e+00  1.302e-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:  5.246e-01  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.444 19.286

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/985712/cmap_HighResolution_252288001_252547201_4FGL_J2149.7+1917_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', job_status='DONE', photon_flux_upper_limit='9.48e-08', time_completed='2021-09-27 18:31:50.101523', job_id='985712', GAL2='1.13', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632792710.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-1.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='50' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 985712: <4FGL_J2149.7+1917_daily_bin50> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin50> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 18:15:22 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:16: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 18:16:33 2021
Terminated at Mon Sep 27 18:31:50 2021
Results reported at Mon Sep 27 18:31:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin50 327.444 19.2859 252288001 252547201 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 :                                   740.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            988 sec.

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

