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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin1230
RA = 267.255, Dec = 43.3616
tmin = 558144001, tmax = 558403201
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='196919', job_status='RUN', time_executed='2021-09-18 16:09:27.860136', time_epoch_executed='1632006567.86' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196919

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196919/ft1_4FGL_J1749.0+4321_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196919/ft1_4FGL_J1749.0+4321_daily_bin1230.fits outfile=/scratch/kocevski/196919/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1230.fits ra=267.255 dec=43.3616 rad=12.0 tmin=558144001.0 tmax=558403201.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.30
user 4.03
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.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/196919/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1230.fits evtable="EVENTS" outfile="/scratch/kocevski/196919/ft1_filtered_4FGL_J1749.0+4321_daily_bin1230.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196919/ft1_filtered_4FGL_J1749.0+4321_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/196919/ltcube_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.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/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits
.....................!
real 12.00
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196919/ft1_filtered_4FGL_J1749.0+4321_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/196919/ltcube_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.fits outfile=/scratch/kocevski/196919/expmap_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.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/196919/ltcube_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.fits
.....................!
real 190.61
user 185.35
sys 4.83

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

Setting source of interest to:
4FGL J1749.0+4321 @ 267.255 43.3616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/196919/ft1_filtered_4FGL_J1749.0+4321_daily_bin1230.fits scfile=/scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits outfile=/scratch/kocevski/196919/cmap_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.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=267.255 yref=43.3616 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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196919/ft1_filtered_4FGL_J1749.0+4321_daily_bin1230.fits scfile=/scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits outfile=/scratch/kocevski/196919/cmap_HighResolution_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.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=267.255 yref=43.3616 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/196919/ft1_filtered_4FGL_J1749.0+4321_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/196919/Model_4FGL_J1749.0+4321_daily_bin1230.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/196919/ft1_filtered_4FGL_J1749.0+4321_daily_bin1230.fits....................!
real 28.76
user 27.43
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/196919/ft1_filtered_4FGL_J1749.0+4321_daily_bin1230.fits', '/scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits', expMap='/scratch/kocevski/196919/expmap_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.fits', expCube='/scratch/kocevski/196919/ltcube_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/196919/Model_4FGL_J1749.0+4321_daily_bin1230.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1749.0+4321'

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  4.281e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/196919/ft1_filtered_4FGL_J1749.0+4321_daily_bin1230.fits
Spacecraft file(s): /scratch/kocevski/196919/ft2_4FGL_J1749.0+4321_daily_bin1230.fits
Exposure map: /scratch/kocevski/196919/expmap_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.fits
Exposure cube: /scratch/kocevski/196919/ltcube_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/196919/Model_4FGL_J1749.0+4321_daily_bin1230.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) = 1966.96113157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.886       1.0000         .10000E-03   10000.    
     2 'norm      '    .38737E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2132       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9337       1.0000         .10000E-03   10000.    
     6 'norm      '    46.769       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.262       1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.682       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0197       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38372E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.380       1.0000         .10000E-03   10000.    
    22 'norm      '    10.809       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17425E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    96.682       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .69546       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1966.932     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3470 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.886        17.594       -.49351E-06   -.75281E-05
   2  norm          .10001E-03    3.4567        .16160E-06** at limit **
   3  norm          2.2135        7.1491        .43403E-06   -.22999E-04
   4  Prefactor     .10000E-03    41.351       -.20676E-07** at limit **
   5  norm          1.9343        3.3392        .13622E-06   -.50155E-04
   6  norm          46.737        41.537       -.18443E-05   -.32997E-04
   7  norm          .10000E-03    3.4730        .33172E-07** at limit **
   8  Prefactor     49.251        50.362       -.21178E-06    .11235E-06
   9  Prefactor     70.475        124.81        .58394E-06   -.25393E-04
  10  norm          4.9789        14.225       -.20723E-05   -.51799E-04
  11  Prefactor     2.9694        6878.7        .66556E-04    .16930E-06
  12  Prefactor     .10000E-03    61.275       -.91735E-07** at limit **
  13  norm          .10000E-03    42.473        .28764E-07** at limit **
  14  Prefactor     .10000E-03    152.12       -.12178E-06** at limit **
  15  Prefactor     .10000E-03    51.327        .26533E-07** at limit **
  16  Prefactor     .10000E-03    765.18        .29325E-07** at limit **
  17  Prefactor     .10000E-03    182.85        .29693E-06** at limit **
  18  Prefactor     .10000E-03    15.218        .48855E-06** at limit **
  19  Prefactor     .10000E-03    15.024       -.19503E-07** at limit **
  20  norm          .10000E-03    .65756        .98040E-07** at limit **
  21  norm          15.451        157.01        .11165E-05   -.36295E-05
  22  norm          10.804        26.110       -.79911E-07   -.10245E-04
  23  Prefactor     .10000E-03    634.16       -.69199E-07** at limit **
  24  Prefactor     .10000E-03    8.5762        .95260E-06** at limit **
  25  norm          96.650        91.315        .43773E-06   -.98210E-05
  26  norm          .10000E-03    39.330       -.19124E-06** at limit **
  27  Normalizat    .69581        .47286        .17431E-05   -.47679E-04
  28  Prefactor     .91225        .23773       -.16844E-05    .17423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8857
  norm       = 0.000100006
  norm       = 2.21352
  Prefactor  = 0.0001
  norm       = 1.93427
  norm       = 46.7371
  norm       = 0.0001
  Prefactor  = 49.251
  Prefactor  = 70.4748
  norm       = 4.9789
  Prefactor  = 2.96944
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.4507
  norm       = 10.8037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 96.6504
  norm       = 0.0001
  Normalizat = 0.695812
  Prefactor  = 0.91225
 **********
 **   18 **HESSE 
 **********

 FCN=   1966.932     FROM HESSE     STATUS=OK           515 CALLS     3985 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.886        17.191        .10381E-03   -1.4936    
   2  norm          .10001E-03    61.549        .15377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2135        7.0946        .19953E-03   -1.5410    
   4  Prefactor     .10000E-03    41.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9343        3.2806        .95752E-04   -1.5430    
   6  norm          46.737        41.274        .58630E-04   -1.4340    
   7  norm          .10000E-03    3.4769        .80688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.251        50.259        .57134E-04   -1.4303    
   9  Prefactor     70.475        124.61        .23874E-03   -1.4027    
  10  norm          4.9789        14.176        .18034E-03   -1.5262    
  11  Prefactor     2.9694        6936.2        .23354E-03   -1.5363    
  12  Prefactor     .10000E-03    61.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    42.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    152.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    765.17        .21283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    182.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.253        .16885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.029        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .65743        .35103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.451        157.64        .10213E-03   -1.4922    
  22  norm          10.804        26.083        .12186E-03   -1.5050    
  23  Prefactor     .10000E-03    634.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5947        .12626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          96.650        91.357        .20440E-03   -1.3739    
  26  norm          .10000E-03    39.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .69581        .54134        .40083E-03   -1.0406    
  28  Prefactor     .91225        .27458        .18548E-03   -.95714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63255e-10
Minuit parameter uncertainties:
  1  17.197
  2  0.00125042
  3  7.09732
  4  2.54665e-05
  5  3.28091
  6  41.2994
  7  2.51808e-06
  8  50.3021
  9  125.075
  10  14.1852
  11  237.489
  12  1.16222e-05
  13  2.33249e-05
  14  0.000215174
  15  2.13677e-05
  16  8.21482e-05
  17  0.000278764
  18  2.25223e-05
  19  4.86256e-06
  20  8.8512e-07
  21  99.0441
  22  26.1102
  23  0.000172384
  24  3.41911e-05
  25  91.4902
  26  4.1796e-05
  27  0.545576
  28  0.274993
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.000e-04  4.863e-06  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.123e-01  2.750e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  6.958e-01  5.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.255 43.362
Photon Flux Upper Limit: 2.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196919/likelihoodResults_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.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) = 1966.93189726
delta logL = -0.000315750326536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1966.93158149
delta logL = 2.03422132472e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1966.932     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6422.3        .90712E-02** at limit **
   2  Index         1.9840        5.0180        .50000        .17069E-05
   3  Normalizat    .69582        .24290        .90468E-01    .32570E-04
   4  Prefactor     .91225        .12856        .45161E-01    .53448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.984
  Normalizat = 0.695817
  Prefactor  = 0.912248
 **********
 **   18 **HESSE 
 **********

 FCN=   1966.932     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.695        .16947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9840        5.9347        .50000       -.64751    
   3  Normalizat    .69582        .48253        .40081E-03   -1.0406    
   4  Prefactor     .91225        .25729        .18548E-03   -.95714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34401e-11
Minuit parameter uncertainties:
  1  9.89387e-05
  2  4.53769
  3  0.485516
  4  0.257633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196919': 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) = 1966.93158145
delta logL = 6.06260073255e-08

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.000e-04  9.894e-05  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  1.984e+00  4.538e+00  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.122e-01  2.576e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  6.958e-01  4.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.255 43.362

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/196919/cmap_HighResolution_558144001_558403201_4FGL_J1749.0+4321_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='2.01e-07', time_completed='2021-09-18 16:17:47.727077', job_id='196919', GAL2='0.91', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632007067.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1230' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:17:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 196919: <4FGL_J1749.0+4321_daily_bin1230> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1230> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 18 16:05:42 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 16:05:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 16:05:43 2021
Terminated at Sat Sep 18 16:17:48 2021
Results reported at Sat Sep 18 16:17:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1230 267.255 43.3616 558144001 558403201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1749.0+4321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   481.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             189.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

