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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin30
RA = 327.444, Dec = 19.2859
tmin = 247104001, tmax = 247363201
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='985675', job_status='RUN', time_executed='2021-09-27 18:18:49.060490', time_epoch_executed='1632791929.06' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='30'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985675/ft1_4FGL_J2149.7+1917_daily_bin30.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985675/ft2_4FGL_J2149.7+1917_daily_bin30.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985675/ft1_4FGL_J2149.7+1917_daily_bin30.fits outfile=/scratch/kocevski/985675/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin30.fits ra=327.444 dec=19.2859 rad=12.0 tmin=247104001.0 tmax=247363201.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 1.25
user 1.09
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985675/ft1_filtered_4FGL_J2149.7+1917_daily_bin30.fits" evtable="EVENTS" scfile=/scratch/kocevski/985675/ft2_4FGL_J2149.7+1917_daily_bin30.fits sctable="SC_DATA" outfile=/scratch/kocevski/985675/ltcube_247104001_247363201_4FGL_J2149.7+1917_daily_bin30.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/985675/ft2_4FGL_J2149.7+1917_daily_bin30.fits
.....................!
real 15.00
user 14.66
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985675/ft1_filtered_4FGL_J2149.7+1917_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/985675/ft2_4FGL_J2149.7+1917_daily_bin30.fits sctable="SC_DATA" expcube=/scratch/kocevski/985675/ltcube_247104001_247363201_4FGL_J2149.7+1917_daily_bin30.fits outfile=/scratch/kocevski/985675/expmap_247104001_247363201_4FGL_J2149.7+1917_daily_bin30.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/985675/ltcube_247104001_247363201_4FGL_J2149.7+1917_daily_bin30.fits
.....................!
real 157.35
user 152.91
sys 3.91

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/985675/ft1_filtered_4FGL_J2149.7+1917_daily_bin30.fits scfile=/scratch/kocevski/985675/ft2_4FGL_J2149.7+1917_daily_bin30.fits outfile=/scratch/kocevski/985675/cmap_247104001_247363201_4FGL_J2149.7+1917_daily_bin30.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985675/ft1_filtered_4FGL_J2149.7+1917_daily_bin30.fits scfile=/scratch/kocevski/985675/ft2_4FGL_J2149.7+1917_daily_bin30.fits outfile=/scratch/kocevski/985675/cmap_HighResolution_247104001_247363201_4FGL_J2149.7+1917_daily_bin30.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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985675/ft1_filtered_4FGL_J2149.7+1917_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/985675/ft2_4FGL_J2149.7+1917_daily_bin30.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985675/Model_4FGL_J2149.7+1917_daily_bin30.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/985675/ft1_filtered_4FGL_J2149.7+1917_daily_bin30.fits.....................!
real 104.88
user 103.53
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.644       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22217E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2533       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.148       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.0116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5422       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23554E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .43662       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.489       1.0000         .10000E-03   10000.    
    17 'norm      '    9.9229       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.536       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16667E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75845       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98103       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=   7941.297     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2769 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.645        18.934        .11072E-05   -.32024E-04
   2  Prefactor     .10001E-03    838.45        .16466E-04** at limit **
   3  Prefactor     5.2533        9.2182       -.26217E-06    .11509E-04
   4  Prefactor     .10000E-03    22.040        .50545E-06** at limit **
   5  Prefactor     .10000E-03    11.597        .12789E-06** at limit **
   6  norm          12.148        5.9199        .45001E-07   -.10767E-04
   7  Prefactor     .10000E-03    3.7495        .22803E-06** at limit **
   8  Prefactor     3.0453        6.7045       -.74908E-06   -.21632E-04
   9  Prefactor     .10000E-03    146.68        .24380E-05** at limit **
  10  norm          6.0101        3.0317       -.54017E-07   -.68223E-04
  11  Prefactor     .10000E-03    22.797       -.31226E-07** at limit **
  12  norm          6.5422        2.5752       -.70038E-07    .51250E-04
  13  Prefactor     .10000E-03    101.53        .17719E-05** at limit **
  14  Prefactor     .10000E-03    236.76        .16895E-04** at limit **
  15  norm          .43600        .70921        .76385E-06    .40315E-03
  16  Prefactor     10.489        10.458       -.22893E-06    .74839E-04
  17  norm          9.9233        5.4133       -.38830E-06    .11372E-03
  18  Prefactor     .10000E-03    5.5427        .11884E-06** at limit **
  19  Prefactor     11.510        272.06       -.38189E-05    .89018E-05
  20  Prefactor     .10000E-03    12.691        .24673E-05** at limit **
  21  Normalizat    .75839        .24095       -.11427E-06    .10275E-03
  22  Prefactor     .98105        .10238        .65903E-06    .68158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6454
  Prefactor  = 0.000100005
  Prefactor  = 5.25333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1476
  Prefactor  = 0.0001
  Prefactor  = 3.04526
  Prefactor  = 0.000100002
  norm       = 6.01008
  Prefactor  = 0.0001
  norm       = 6.54221
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  norm       = 0.435999
  Prefactor  = 10.489
  norm       = 9.92325
  Prefactor  = 0.0001
  Prefactor  = 11.5097
  Prefactor  = 0.000100004
  Normalizat = 0.758393
  Prefactor  = 0.981048
 **********
 **   18 **HESSE 
 **********

 FCN=   7941.297     FROM HESSE     STATUS=OK           358 CALLS     3127 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.645        18.924        .11265E-03   -1.4997    
   2  Prefactor     .10001E-03    834.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2533        9.2133        .17537E-03   -1.5250    
   4  Prefactor     .10000E-03    22.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.148        5.9162        .11493E-03   -1.5011    
   7  Prefactor     .10000E-03    3.8503        .33644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0453        6.7055        .23262E-03   -1.5359    
   9  Prefactor     .10000E-03    146.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.0101        3.0201        .10245E-03   -1.5218    
  11  Prefactor     .10000E-03    22.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5422        2.5777        .85812E-04   -1.5196    
  13  Prefactor     .10000E-03    102.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.648        .15642       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .43600        .70768        .10177E-02   -1.5576    
  16  Prefactor     10.489        10.442        .12371E-03   -1.5060    
  17  norm          9.9233        5.4149        .12721E-03   -1.5078    
  18  Prefactor     .10000E-03    5.5640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.510        272.64        .11795E-03   -1.5029    
  20  Prefactor     .10000E-03    58.720        .46515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75839        .27467        .41205E-03   -1.0163    
  22  Prefactor     .98105        .11857        .16440E-03   -.93364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22556e-10
Minuit parameter uncertainties:
  1  18.9334
  2  0.00433388
  3  9.21577
  4  9.44423e-05
  5  1.42037e-05
  6  5.91649
  7  1.05054e-05
  8  6.70717
  9  0.000958339
  10  3.02014
  11  6.41388e-06
  12  2.57778
  13  0.000829465
  14  0.00058221
  15  0.707697
  16  10.4438
  17  5.41513
  18  1.28716e-05
  19  112.617
  20  0.000957358
  21  0.275171
  22  0.1186
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  8.295e-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:  9.810e-01  1.186e-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:  7.584e-01  2.752e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985675/likelihoodResults_247104001_247363201_4FGL_J2149.7+1917_daily_bin30.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) = 7941.29678822
delta logL = -4.64507811557e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7941.29673932
delta logL = 2.44716466113e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78958E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7587       1.0000          .0000       10.000    
     3 'Normalizat'    .75839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98105       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7941.266     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      365 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5402        57.121        .20910E-02    .66649E-03
   2  Index         3.3524        3.5016        .59378E-02    .38478E-04
   3  Normalizat    .74062        .26864        .41660E-03   -.16510E-04
   4  Prefactor     .98444        .11778        .16413E-03   -.51051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54024
  Index      = 3.35243
  Normalizat = 0.740617
  Prefactor  = 0.984441
 **********
 **   18 **HESSE 
 **********

 FCN=   7941.266     FROM HESSE     STATUS=OK            27 CALLS      392 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5402        22.875        .41820E-03   -1.5389    
   2  Index         3.3524        2.3845        .11876E-02   -.33579    
   3  Normalizat    .74062        .26809        .16664E-04   -1.0231    
   4  Prefactor     .98444        .11790        .65650E-05   -.93250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21112e-12
Minuit parameter uncertainties:
  1  15.2532
  2  2.49972
  3  0.268564
  4  0.117929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985675': 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) = 7941.26633502
delta logL = 0.0304067427423

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  2.540e+00  1.525e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.352e+00  2.500e+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:  9.844e-01  1.179e-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:  7.406e-01  2.686e-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/985675/cmap_HighResolution_247104001_247363201_4FGL_J2149.7+1917_daily_bin30.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.53e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-27 18:30:06.263392', job_id='985675', GAL2='0.98', fit_tolerance='1e-08', EG2='0.74', EG='0.76', time_epoch_completed='1632792606.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.04e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='30' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:30:06 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin30 327.444 19.2859 247104001 247363201 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 :                                   675.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            887 sec.

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

